Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: mouseover not working
dljeff
Newbie

Posts: 1
Registered: 7/10/2005
Member Is Offline
posted on 7/10/2005 at 10:04 PM Reply With Quote
mouseover not working


my html file has a table with 2 columns. I have the scroller in the first column and the second column has an image defined to it

<img src="images/brides/DSCF0020.jpg" name="image_big" id="image_big" width="308" height="452">

then in my scroller I have multiple images scroller, and if one of the images is moused-over (or clicked) I want to change the image_big src above

<a href="javascript:;" onMouseOver="MM_swapImage('image_big','','../images/brides/DSCF0020.jpg',1)" onMouseOut="MM_swapImgRestore()"><img src="../images/brides/DSCF0020.jpg" width="175" height="200" border="0" alt=""></a>

I've tried multiple ways - even putting the image_big in with cont1.html file as well, but no luck either way.

How do I implement mouseover to change the original image_big?
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 7/11/2005 at 08:06 AM Reply With Quote

You should consider when refering images in your hover functionality that scroller content is located in iframe.
View User's Profile View All Posts By User U2U Member
elviscat
Junior Member

Posts: 7
Registered: 1/25/2005
Member Is Offline
posted on 12/2/2005 at 09:49 AM Reply With Quote

and therefore what does this mean , when referrring to images?

Could you expand
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 12/6/2005 at 07:11 PM Reply With Quote

You are referring to MM_swapImage function from iframe (scroller content is located in the iframe), so if the function is defined within your page try to call:
parent.MM_swapImage(..)
View User's Profile View All Posts By User U2U Member
elviscat
Junior Member

Posts: 7
Registered: 1/25/2005
Member Is Offline
posted on 12/7/2005 at 01:36 PM Reply With Quote

rock,

I have tried everything and it is still not working,

in the default.asp page at the top is:

<SCRIPT LANGUAGE="JavaScript">
<!-- hide from non JavaScript Browsers

Rollimage = new Array()

Rollimage[0]= new Image(78,16)
Rollimage[0].src = "images/buy_album_icon.gif"

Rollimage[1] = new Image(78,16)
Rollimage[1].src = "images/buy_album_icon_over.gif"

function SwapOut(){
document.buy.src = Rollimage[1].src;
return true;
}

function SwapBack(){
document.buy.src = Rollimage[0].src;
return true;
}

// - stop hiding -->
</SCRIPT>

and the cont1.html page the loads at the rollover image:

<A HREF="" onmouseover="SwapOut()" onmouseout="SwapBack()"><IMG SRC="images/buy_album_icon.gif" NAME="buy" WIDTH=78 HEIGHT=16 BORDER=0></A>

I have tried putting the javascript in the cont page, doesn't work, I have tried as it is now, doesn;t work.

I have tried the MM function, doesn;t work, using parent.MM doesn't, m8 can you test this and see if you can actually get this working please.

This bollox is consting me a fortune

Regards

Kev
View User's Profile View All Posts By User U2U Member
rock
Moderator

Posts: 687
Registered: 4/15/2003
Member Is Offline
posted on 12/7/2005 at 03:07 PM Reply With Quote

Try files from attachment.

Attachment: rollover.zip (7.94kb)
This file has been downloaded 1058 times
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos:
Multiple vertical scrolling
Horizontal scrolling
Free Download Free Download
Product Documentation Documentation:
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
   

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004