Click to See Complete Forum and Search --> : hotspot question
nabilose
03-15-2003, 04:20 PM
it sounds a rookie question but... , well i have problem with hotspot on my image, i have my image se at 100% so it can shrink or stretch depending on the screen resolution and i have placed a hotspots in it, but whenever the window or resolution change the hotspots take completely different positions and all is messed up, is ther any solution for that can i place hotspots in an absolute position so they can shrink and strech too with the image and keep their right places???
Nedals
03-15-2003, 06:09 PM
Food for thought: - I'm not sure if this will work, but here goes.
Create a <div> that floats above your image. This div will contain a 'matrix' of transparant images, also sized relatively. These could then be used for your hot spots.
nabilose
03-17-2003, 02:20 PM
thanks guys but none of those solutions worked:( any other solution please
Nedals
03-17-2003, 04:41 PM
Post a link or supply a sample of your page code (attach the image). We can take a better look and maybe propose something.
nabilose
03-17-2003, 05:08 PM
ok the website is xmeninformer (http://www.xmeninformer.com) , u can see the nav bar in the right but i dont really know how to put hotspots in there as the imgae shrink and strecth as the resolution changes , thanks
Nedals
03-17-2003, 05:28 PM
There's no 'nav bar' on the right. Do you mean the 'Home' .... 'Donate' nav bar on the left which appears to be one large image? If so, then break up the image into its individual components and make those your hotspots (links)
khaki
03-17-2003, 06:25 PM
Nedals wrote: Create a <div> that floats above your image. This div will contain a 'matrix' of transparant images, also sized relatively. These could then be used for your hot spots.Hi nabilose...
Nedals seems to have given you two possible options. Did you really try the first option (quoted above?).
It seems that "conceptually" it would work - and it wouldn't require that you alter the integrity of your original image (as his 2nd suggestion would require - which is really just an image version of his div matrix suggestion. Genius!).
This is an interesting issue...
Resizing an image map based on a resized image to accomodate screen resolution. (would this be better in the Graphics forum? I wonder).
Anyway ... please be sure to keep us informed as to the progress that you having with this.
Thanks.
shorter... but less fun (for me)...
k
Nedals
03-17-2003, 08:03 PM
On further study, I notice that you right-hand frame is a fixed width of 175 so you only need to deal with the vertical change.
Something like this....
<div style="text-align:center">
<a href="#"><img src="img1.gif" width=130 height=20% border=1></a><br>
<a href="#"><img src="img2.gif" width=130 height=20% border=1></a><br>
<a href="#"><img src="img3.gif" width=130 height=20% border=1></a><br>
<a href="#"><img src="img4.gif" width=130 height=20% border=1></a><br>
etc.....
</div>
nabilose
03-17-2003, 10:14 PM
hey man thanks a lot it worked perfectely totally solved my problems, i broke up the image as u said and i aligned like u said and everything worked quite good thanks man:)
khaki
03-18-2003, 11:32 AM
Hey Nedals...
Did you ever try the div matrix thing yourself to see if it would work?
It would be a lot simpler to create something like that than to chop-up an image (I would think).
Just curious (and good job on solving the image map problem. By the way... is "hotspot" and image map the same thing? I keep calling it that, but maybe they are different?).
k
Nedals
03-18-2003, 11:53 AM
Did you ever try the div matrix thing yourself to see if it would work?No, I've never tried it but, if your image was a background, you could not break it up so this may be the only way. I can't see any reason why it would not work.
In this application, using a floating layer or breaking up the image would seem to be a wash. (assuming you have ImageReady, or some such, to slice up the image)
"hotspot"!! I've never heard term myself (I was just guessing) but I suppose you could equate that to an image map application. Maybe nabilose has coined a new term or, more likely, I'm still living in the past! :D
khaki
03-18-2003, 01:15 PM
Nedals wrote: "hotspot"!! I've never heard term myself (I was just guessing) but I suppose you could equate that to an image map application. Maybe nabilose has coined a new term or, more likely, I'm still living in the past!Actually, I beleive that "hotspots" might be a Macromedia term. I've seen it (but never utilized it) in Fireworks. (i only use Firework's most basic features. But I love it even for that).
By the way... I wouldn't mind living in the past. Ages 9 thru 11 seemed like a fun time. lol
k
(i think that the exploding dog guy is starting to p*ss me off now)
thejoker101
03-18-2003, 01:23 PM
These two pages reference each other, they explain the term hot spot.
http://www.webopedia.com/TERM/i/image_map.html
http://www.webopedia.com/TERM/H/hot_spot.html
khaki
03-18-2003, 01:33 PM
Thanks Joker!
So in keeping with Nedals' mathematical theme...
a hotspot is a sub-set of an image map.
(that's math, right? I think I learned that in math class. Sets, sub-sets super-sets, etc.
Then again, why would that be taught in a math class? It's got no numbers!).
actually really sucky at math...
k
thejoker101
03-18-2003, 01:36 PM
If you want to think of it in math terms, then yeah, it's a sub-set.
ozone
08-19-2006, 02:43 PM
Nedals,
I have the same problem with my hot spots moving.
I am a novice and I mostly use WYSIWYG, but I pasted your code into mine, did a little research and pasted some more in, played around and it looks like it SHOULD work, but doesn't. It seemed to sort of work when I first started, but now when I preview the page it just shows the image with no hyperlinks working at all
In general, I prefer a simple quick loading page, but I really liked the idea of creating a website that has its own sort of console look. So I've designed the website with a frame at the top, one on the side and the main frame in the middle. When you surf to each major topic the "console" changes shape and color. Clicking minor topics change only the content in the main middle frame.
In the code below all the images are transparent images and the hyperlinks are just temporary links to other pages in the document to see if it was working.
I'd really appreciate it if you could steer a newb in the right direction.
Thank you.
Code to follow:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
<base target="main">
<meta name="Microsoft Theme" content="stars 1011">
</head>
<body topmargin="0" leftmargin="0">
<p>
<img border="0" src="images/side_12.png" width="254" height="100%"></p>
<div style="
top: 0px;
left: 46px;
position: absolute;
z-index: 2;
visibility: show
text-align:center">
<a href="#"><img src="img1.gif" width=130 height="2%" border=0></a><br>
<a href="#"><img src="img2.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img3.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img4.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img1.gif" width=130 height=3% border=0></a><br>
<a href="auto_philosophy.htm"><img src="images/button_image.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img3.gif" width=130 height=3% border=0></a><br>
<a href="blue_frame_cars.htm"><img src="images/button_image.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img2.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img3.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img4.gif" width=130 height=3% border=0></a><br>
<a href="chronicles1.htm"><img src="img5.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img6.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img7.gif" width=130 height="3%" border=0></a><br>
<a href="#"><img src="img8.gif" width=130 height="3%" border=0></a><br>
<a href="#"><img src="img9.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img10.gif" width=130 height=3% border=0></a><br>
<a target="_top" href="electrical_general.htm"><img src="img11.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img12.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img13.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img14.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img15.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img16.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img1.gif" width=130 height="4%" border=0></a><br>
<a href="#"><img src="img2.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img3.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img4.gif" width=130 height="2%" border=0></a><br>
<a href="#"><img src="img1.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img2.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img3.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img4.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img1.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img2.gif" width=130 height=3% border=0></a><br>
<a href="#"><img src="img3.gif" width=130 height="4%" border=0></a><br>
</div>
</body>
</html>
Forward Message
Nedals
08-19-2006, 10:03 PM
As you said in your PM, that's a pretty old thread.
Generally, it's better to start a new thread with a link back to the old one for reference.
Based on the code you supplied, it looks like you are trying to put a <div> over your image. Then you are attempting to keep the transparant images, the links, correctly aligned with the base image. Not an easy task at the best of times. As I said before, you would be better off splitting your original image. The percentages you have defined will come back to bite you. :)
but now when I preview the page it just shows the image with no hyperlinks working at all
The hyperlinked 'images' are hidden.
You need to add a width and height to your <div>
<div style="
position: absolute;
top: 0px;
left: 46px;
width:130px;
height:100%;
z-index: 2;
visibility: show
text-align:center">
You don't need the z-index or the visibility, especially when the ';' is missing. ;)
ozone
08-19-2006, 10:38 PM
Thank you. That is very helpful.