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.

HTML Forum


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



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
onMouseOver Help, please
Old 10-06-2006, 04:55 PM onMouseOver Help, please
Junior Talker

Posts: 1
Name: pete
Trades: 0
hi trying to get this mouseover to work where when you roll over a small picture the large one (different URL) comes up instead,. i dont have dreamweaver or anything like that so i've just been piecing together bits of code from here and there to try and make it work, i can make one work at a time, but more than one and it gives up. the pictures show but the mouseover doesnt work.

HTML Code:
<html>

<script type="text/javascript">
function mouseOver()
{
document.b1.src ="http://myspace-445.vo.llnwd.net/00492/54/43/492623445_m.jpg" 
}
function mouseOut()
{
document.b1.src ="http://img170.imageshack.us/img170/9794/andy2nd3.jpg" 
</script>

<body>
<a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=17489607" target="_blank"
onmouseover="mouseOver()"
onmouseout="mouseOut()">
<img border="0" alt="Visit W3Schools!"
src="http://img170.imageshack.us/img170/9794/andy2nd3.jpg" name="b1" /></a>

<script type="text/javascript">
function mouseOver()
{
document.b1.src ="http://img201.imageshack.us/img201/308/bensmalloe3.jpg" 
}
function mouseOut()
{
document.b1.src ="http://img327.imageshack.us/img327/2388/benid4.jpg" 
}
</script>


<a href="http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid=8599189&MyToken=015e0a0e-9c2f-4810-bead-543a5251a4a7" target="_blank"
onmouseover="mouseOver()"
onmouseout="mouseOut()">
<img border="0" alt=""
src="http://img327.imageshack.us/img327/2388/benid4.jpg" name="b1" /></a>
</body>


</html>
any help appreciated

hollowbite
hollowbite is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-06-2006, 06:02 PM Re: onMouseOver Help, please
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Easier to do it with CSS and you'll have a LOT less garbage in your code.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 10-06-2006, 09:41 PM Re: onMouseOver Help, please
Novice Talker

Posts: 5
Trades: 0
LadynRed that didn't answer her/his question in any way whatsoever, why did you bother? Just to make yourself feel worthy? C'mon! what was the point? Either help or don't help - don't make fudgy statements.

Hollowbite, I'll play with it tomorrow and see if I can come up with anything helpful.

Chances are I won't come up with anything but I will try









Last edited by Eskarina; 10-06-2006 at 10:04 PM.. Reason: added content
Eskarina is offline
Reply With Quote
View Public Profile
 
Old 10-06-2006, 10:20 PM Re: onMouseOver Help, please
beta's Avatar
Extreme Talker

Posts: 169
Trades: 0
If thats all your looking for then theres an example here that will probably do the job for you using CSS which means a **** load less code and mess for you like ladynred said... but if you really have to use javascript then this page seems to have tonnes about javascript rollovers with images.

Just one more thing Eskarina, before you go laying it down to anyone else on the forum, please check that your own post contains something of use.

Last edited by beta; 10-06-2006 at 10:26 PM.. Reason: giving eskarina a back-hander
beta is offline
Reply With Quote
View Public Profile
 
Old 10-06-2006, 11:46 PM Re: onMouseOver Help, please
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Quote:
LadynRed that didn't answer her/his question in any way whatsoever, why did you bother? Just to make yourself feel worthy? C'mon! what was the point? Either help or don't help - don't make fudgy statements.
Just a little too snippy for someone with a mere 5 posts in this forum.

People need to learn to use the search function. This same question has been raised many times in the past months. A bit of google research can turn up THOUSANDS of sites with the answer. Must everyone always have things handed to them on a silver platter ??? I see YOU didn't have anything constructive to offer.

There are 37 solutions on this page, all done with CSS:

http://www.alvit.de/css-showcase/css...s-showcase.php
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to onMouseOver Help, please
 

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.21402 seconds with 12 queries