Web Design and Development Forums

SwapImgRestore problem

This is a discussion on "SwapImgRestore problem" within the JavaScript Forum section. This forum, and the thread "SwapImgRestore problem are both part of the Program Your Website category.

Old May 1st, 2008, 16:23   #1 (permalink)
New Member
 
Join Date: Mar 2008
Location: London, UK
Age: 25
Posts: 2
SwapImgRestore problem

I´m using the SwapImage and the SwapImgRestore functions to create two rollover images, but for two different targets and I only want one of them to be restored back to the original position with onMouseOut. The problem seems to be that SwapImgRestore is applied to both targets and I want to apply it only to one.
Here´s the page:

http://www.davidrisleygallery.com/new/artistsvert.htm

I would like the text to revert back to the original with onMouseOut but not the the main image, I want the main image to to be replaced by the next SwapImage without SwapImgRestore to avoid having the first image always coming back when going in between the menu options.
Any ideas?
Thanks.

Antonio
oberonx is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 1st, 2008, 18:22   #2 (permalink)
Chief Moderator
 
aso186's Avatar
 
Join Date: Oct 2007
Location: UK
Posts: 715
Blog Entries: 2
Send a message via Skype™ to aso186
Re: SwapImgRestore problem

Moved to Javascript forum
__________________

aso186 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 4th, 2008, 09:54   #3 (permalink)
Junior Member
 
Join Date: May 2008
Location: UK
Posts: 46
Re: SwapImgRestore problem

A bit confusing,

If you use the rollover image function say in Dreamweaver (writing the javascript for you) it will always revert back to the original image when the mouse is rolled out, unless you manually replace it with an image placeholder, but this would be in a separate html page if it was going to appear to work like a menu.

Not sure if this is what you are getting at, but it sounds something similar.

mwdesign
mwdesign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old May 5th, 2008, 02:16   #4 (permalink)
Nerdy Moderator
 
CloudedVision's Avatar
 
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 521
Blog Entries: 4
Re: SwapImgRestore problem

Like this:

HTML: Select all
<img src="Images Web/woolley.png" name="woolley" width="220" height="30" id="woolley" onmouseover="MM_swapImage('image_id','','iamge_path'); document.getElementById('main_image').src = 'image_path';" onmouseout="MM_swapImgRestore()" />
__________________
Take it easy

Other Road Design

WebForumz Moderator: HTML | Javascript | PHP
CloudedVision is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
First image problem and inline list problem konnor5092 CSS Forum 8 Dec 1st, 2007 09:08



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 23:36.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59