|
-
Jan 25th, 2004, 09:38 AM
#1
' is not working :S
just say i want 2 do this:
onmouseover="this.innerHTML(<img src='welcome home.gif'>')"
how can i do this ??? because js doesn't like the ' ... - how can i make this work??
thanks kris
-
Jan 25th, 2004, 11:42 AM
#2
Looks like your trying a rollover? http://www.google.com/search?q=%22ja...utf-8&oe=utf-8
In any case, it seems to be a parsing problem in IE. If you're using an image (i.e. <img src="blah.gif" onmouseover="...">), you could use:
Code:
<img onmouseover = "this.src = 'welcome home.gif'" alt="Welcome Home">
-
Jan 25th, 2004, 01:07 PM
#3
Code:
onmouseover="this.innerHTML(<img src='welcome home.gif'>')"
Just look at the code!
It should be
Code:
onmouseover="this.innerHTML = '<img src=\'welcome home.gif\'>'"
Of course, it shouldn't be this either, see axion's post.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jan 26th, 2004, 05:06 AM
#4
whops that what i meant ... but it still DOESN:T WORK
i will show u y:
onmouseover="this.innerHTML = '<img src='welcome home.gif'>'"
----------------------------------------^----------------^---
c how it conflicts with the other comma's
... how can i work round this - for eg in vb u use 2 double quotes in a row... but that doesn't work in java..
-
Jan 26th, 2004, 09:09 AM
#5
That's because this stupid forum removed by backslashes.
Code:
onmouseover="this.innerHTML = '<img src=\\'welcome home.gif\\'>'"
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|