PDA

View Full Version : Problem with onMouseOver / N6


ChasDevlin
03-27-2003, 06:41 PM
Once again, I turn to this board! A site I'm doing will be viewed by wife's family overseas and they may very well have old browsers.

A thumbnail image (in an iFrame) should activate a large 'hold' image when rolled over using 'onMouseOver'. Code as such:

<script type="text/javascript">
function myClick(src,str) {
parent.document.getElementById('hold').src = src;
parent.document.getElementById('textCaption').innerHTML = str;
}
</script>

-------------------

<a href="javascript:void(0);" onMouseOver="myClick('gfx/city_1.jpg','photo caption inserted here');" onFocus="this.blur();"><img src="gfx/city_1_thumb.jpg" class="Img" width="65" height="39" alt="" border="0"></a>


********************

The code was customized (hence the myClick thing) but does work in IE. I don't care about N4 (time to upgrade!) and N7 is brand new and I doubt most people keep up to date but N6, where it's failing, is still used.

Any thoughts or a workaround? Very much appreciated. Test site is up at:

http://www.sleazerama.com/NT_test/test.htm

My thanks to all on this board...

cheesebagpipe
03-27-2003, 10:00 PM
Hey, look...it's LA...

Try this:

<img src="gfx/hold.jpg" id="hold" class="Img"......>

btw - it's "Navigation" :D

ChasDevlin
03-27-2003, 10:56 PM
hey,

cheers for the reply. the bad spelling was my rush to get the sample page up... not usually so careless!

your version worked. i also got an earlier reply with the following:

<script type="text/javascript">
function myClick(src,str) {
parent.document.images['hold'].src = src;
parent.document.getElementById('textCaption').innerHTML = str;
}
</script>

------------------------

regarding N6, this only works when used in conjunction with 'id' but not 'name' -- as your code states.

which landmark gave it away...?!

cheesebagpipe
03-27-2003, 11:18 PM
This (http://www.sleazerama.com/NT_test/gfx/city_2.jpg) just screams LA to an expatraite like myownself (La Cienega?)...

http://hotwired.lycos.com/webmonkey/98/05/index3a.html?tw=authoring

ChasDevlin
03-28-2003, 12:33 AM
UK expat? from london? anyway, the photos are of koreatown -- the wiltern on western being the landmark giveaway...!