Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript (onmouseover with image changes)
Old 06-20-2007, 05:49 PM Javascript (onmouseover with image changes)
mb2000inc's Avatar
Super Talker

Posts: 140
Name: Mark
Location: Ohio
Trades: 0
Why Is ASP.NET a pain in the arse?
ASP.NET doesn't let you use the JAVASCRIPT onmouseover/onmouseout effect to change an image when you want to use it as a link.... Just out of curiosity, does anyone know how to get this to work?

Code:
<div class="menu0"style="z-index: 124; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
<a onmouseover="javascript:this.src='images/buttonwhaton.gif'; return true;"onmouseout="javascript:this.src='images/buttonWhat.gif'; return true;"href="faq.aspx#What"><imgsrc='images/buttonWhat.gif'alt="What"style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none"/></a>
</div>
Not an entirely big deal, but, I'd like to know how to work it for future reference...

Thanks in advance...
__________________
Need a vacation.
mb2000inc is offline
Reply With Quote
View Public Profile Visit mb2000inc's homepage!
 
 
Register now for full access!
Old 06-20-2007, 07:17 PM Re: Javascript (onmouseover with image changes)
logic ali's Avatar
Super Talker

Posts: 104
Trades: 0
Quote:
Originally Posted by mb2000inc View Post
Code:
<imgsrc='images/buttonWhat.gif'
If your code is actually as above then it's a typo, although it all looks like it has had spaces stripped.

I don't know about asp.net but get rid of 'javascript:' it isn't needed and can cause trouble.

You're welcome in advance.
logic ali is offline
Reply With Quote
View Public Profile
 
Old 06-21-2007, 09:57 AM Re: Javascript (onmouseover with image changes)
mb2000inc's Avatar
Super Talker

Posts: 140
Name: Mark
Location: Ohio
Trades: 0
The spaces were stripped when it was posted. (something about this website does that to some of the code, I've posted)...

I've tried before to leave off the "javascript"...it didn't work then, either.

Thanks in return :P
__________________
Need a vacation.
mb2000inc is offline
Reply With Quote
View Public Profile Visit mb2000inc's homepage!
 
Reply     « Reply to Javascript (onmouseover with image changes)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30222 seconds with 12 queries