Lisa A said:
I have added the script to the header and inserted my thumbnail, but now
I'm just stuck. Or do I add the code and insert the image name into the
code script?
I've uploaded my practice page here:
www.gocafeconcepts.com/3dmascotmolds5.htm I've put the larger image on
the site as well. It is 400 x 309
thanks again, and sorry for not grasping this yet.
Lisa A
Lisa,
Well, there appear to be a few things wrong and I may not see them all at
once, but I'll make a start
I see this code in the page. (In my editor this is lines 124 to 147):-
<td width="240">
<p align="center">
</a>
<img border="0" src="mascotmolds/mold1a.jpg" width="200"
height="155"><script type="text/javascript">
function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
{
var newWindow
if (scaleType == 'percent')
{ h = (h * screen.availHeight) / 100
w = (w * screen.availWidth) / 100 }
if (x == 'center')
x = (screen.availWidth - w) / 2
if (y == 'center')
y = (screen.availHeight - h) / 2
options += ',width=' + w + ',height=' + h
+ ',left=' + x + ',top=' + y
newWindow = window.open(url, name, options)
newWindow.focus()
}
</script></td>
Replace this code with:-
<td width="240">
<p align="center">
<a href='' target="_self"
onmouseover="spawnJimcoPopup
( 'mascotmolds/mold1a.jpg'
, '_blank',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
, 400, 400, 'center', '0', 'pixel') ;return false;">
<img border="0" src="mascotmolds/mold1a.jpg" width="200" height="155">
</a>
</p></td>
So apart from the fact that I found a couple of misplaced tags (which
probably won't cause too much problem), the main thing is to replace every
<img> for which you want a mouseover with code such as
<a href='' target="_self"
onmouseover="spawnJimcoPopup
( 'mascotmolds/mold1a.jpg', '_blank',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
, 400, 400, 'center', '0', 'pixel') ;return false;">
<img border="0" src="mascotmolds/mold1a.jpg" width="200" height="155">
</a>
And do not place <script type="text/javascript">function
spawnJimcoPopup(url, name, options, h, w, x, y,
scaleType){.....etc..........</script> inside the <body> - only in the
<head> section.
Please check whether this works. I also wonder whether you want the image to
disappear onmouseout. If so, I can put together code to do this