onmouseover='this.height += 100;this.width += 100'
That's the most basic version.
ShawnCplus
Code Monkey
1,583 posts since Apr 2005
Reputation Points: 526
Solved Threads: 268
adding 100 to the height and width, actually does not maintain the aspect ratio of the image (unless the image is already the same height and width.
If you use a multiplication instead, you should be maintaining the aspect ratio.
Sage
sagedavis
Junior Poster in Training
86 posts since Nov 2007
Reputation Points: 10
Solved Threads: 6
Sagedavis ... Yup, like height *= 2 to double the height ... Remember to also do onmouseout= to restore the height and width back to normal when the mouse moves off of the images. You might also want to add this.src= and fetch a higher resolution version of the image from the server so that you don't end up with images scaled too big for their size.
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
nav33n
Purple hazed!
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
OK, well, that's different, you are looking for something like an ajax, hidden div tag which reviels itself on the mousover of another?
Even though you will be using images, think of it more like a customized tooltip.
There is actually a javascript library located at http://blog.innerewut.de/tooltip
which I have used in the past. All that is required is one small piece of code.
Download tooltip.js I believe it may also require prototype.js (not exactly sure about that since it's been a while since I've used it).
Then all you need to do is include them in your head tag, create the two div tags in your body (one hidden, one not), then at the bottom of your page
<script type="text/javascript">
var my_tooltip = new Tooltip('visible_div_id', 'hidden_div_id')
</script>
Replace visible_div_id and hidden_div_id with the id of the coresponding div tags.
What you need to know though is that your visible div tag must have widths, otherwise the trigger will happen an unwanted places.
sagedavis
Junior Poster in Training
86 posts since Nov 2007
Reputation Points: 10
Solved Threads: 6
the answer is that Pop is not defined. you are calling a function called POP in your onClick function and I see no javascript function (because it must be a function in order to use it). I do not see you using an external javascript either....
so, you've got no internal javascript going on, and no external javascript code (other than declairing a couple of variables) but no javascript functions.
Sage
sagedavis
Junior Poster in Training
86 posts since Nov 2007
Reputation Points: 10
Solved Threads: 6
You're welcome,
glad I could help.
sage
sagedavis
Junior Poster in Training
86 posts since Nov 2007
Reputation Points: 10
Solved Threads: 6