HighDots Forums  

roll over

Javascript JavaScript language (comp.lang.javascript)


Discuss roll over in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Lasse Reichstein Nielsen
 
Posts: n/a

Default Re: roll over - 09-24-2003 , 05:21 PM






"Douglas Crockford" <nospam (AT) laserlink (DOT) net> writes:

Quote:
People who are new at this should never use eval(). Never. But you
should get in the habit of making your code more readable. It is
hard to make it right if it is hard to look at.
Except that this doesn't work.

Quote:
function imgOn(imgName) {
if (document.images) {
document[imgName].src = imgName + "on.src";
Should be:
document[imgName].src = window[imgName + "on"].src;
Quote:
}
}
/L
--
Lasse Reichstein Nielsen - lrn (AT) hotpop (DOT) com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'


Reply With Quote
  #12  
Old   
Lee
 
Posts: n/a

Default Re: roll over - 09-24-2003 , 05:55 PM






Kim Louis said:
Quote:

Thanks! I checked and checked my html but still can't find anything.
Would it be bad to post it to see if you can find something wrong?
Please forgive me if this is not appropriate
Here's one example of a mistyped src:


<img name="image3" src="images/faq.gif-off" border="0"



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.