Solved

Rollover images staying after clicking on it!

Posted on 2002-05-13
13
227 Views
Last Modified: 2010-04-25
Hi!
  i have used the Swap Image to have a rollover, but when the person click on it, i would like that this roll-over image stay there so they can know that they are on that section. So it's not in the onMouseOver and not in onMouseOut i think eh?  Any idea how i can do that with Dreamweaver MX?

Thanks

PUB
0
Comment
Question by:PUB_UL
  • 4
  • 4
  • 3
  • +1
13 Comments
 

Expert Comment

by:m75t
ID: 7008263
the way that I 'use' this problem is that I make a if/then statement with a variable (like chapter or so).

so in the .asp page it would be like this;

<%if chapter="yes" then%>
  <img src="yes_active.gif">
<%else%>
  <a href="blabla.asp?chapter=yes"><img OnMouseOver ...></a>
<%end if%>

there are 2/3 pictures here, out / over & active. the out/and over pictures are used in the <%else%> part and the active picture in the first part. the rollover-images script is in the <%else%> part. in the first part there is no <a href> because you're not supposed to click when you are in 'that' chapter.

good luck, I hope my comment is clear for you!

0
 
LVL 19

Accepted Solution

by:
webwoman earned 75 total points
ID: 7008815
Basically, you make a new page, or send them to a new page.

That's the only way you're going to have the image not be a rollover anymore.

Think about it -- it's a link. They're going somewhere. They're NOT staying on the page. So you make a new one, where the image is NOT a link and NOT a rollover.

Generate it dynamically from a database (which is what m75t does) or simply load another page, it's the same thing.
0
 

Expert Comment

by:m75t
ID: 7008832
I'm sorry, but I have to correct you because I don't want to frighten PUB UL.

my comment is vbscript, that's one of the 3 languages ultradev uses and it has nothing to do with a database ... It posts to the same page, but with another value of a variable. the same what you suggest, but then in one page.
0
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
LVL 1

Author Comment

by:PUB_UL
ID: 7009114
Ok, but i am using frames... do i need to check what page is in the target? I understand what you mean, but it`s different by using frame. My menu is on the TOP frame and the main page is in another TARGET so... and i don`t want to reload a new menu on TOP for every page, i thought there was a way... so i`d like to know what you think about that problem. Sorry if i hadn`t been clear at the beginning.

Thanks
0
 
LVL 19

Expert Comment

by:webwoman
ID: 7009891
Where do they go when they click on the rollover image? They have to go SOMEWHERE. THAT's where you turn off the link -- and the rollover.
0
 

Expert Comment

by:m75t
ID: 7010411
frames / no frames, doesn't matter. if you place your target right, the link knows where to go ...
if you want these options (roll-over, roll-out / active) in the same top/menu-page, you'll have to use the vbscript example. this way you can stay in the same page and you don't have to make new ones with the active menu-items.

with vbscript the page becomes .asp (but that's what MX uses) which means you need hosting that can handle .asp.
0
 
LVL 1

Author Comment

by:PUB_UL
ID: 7016987
ok

the url is http://www.tourcar.com/dev/tcs
look at the top menu, i want it stay...

webwoman: I understand there is a link when they click on it and the page in the frame change. But how do you want me to turn it off without reloading the menu for each section?


m75t: i'll check your example... and hope it works..
0
 
LVL 19

Expert Comment

by:webwoman
ID: 7017864
Even with m75t's answer, you MUST reload the page for the script to be run. Unless you reload the page it won't change.
Since you're using ASP anyway, it would be better to lose the frames and use m75t's script as an INCLUDE on all the pages.
0
 
LVL 1

Author Comment

by:PUB_UL
ID: 7018472
Lose the frames? I need to keep frames...
0
 
LVL 19

Expert Comment

by:webwoman
ID: 7018935
Why? You have to reload BOTH pages if you want there to be any changes reflected in the menu. And if you have to do that all the time, it defeats the purpose of having the frames.

Server side includes will work as well or better, you still only have ONE file to maintain (it gets included on the pages), and your pages can be bookmarked better.
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7025211
Although this questions is current, many others below are not.  You have 13 open questions today that need your attention.  ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101, Netminder, Mindphaser or I will return to finalize these as soon as possible if after 7 days no response by the Asker.  EXPERTS-->  please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.11739238.html
http://www.experts-exchange.com/questions/Q.20104639.html
http://www.experts-exchange.com/questions/Q.20110314.html
http://www.experts-exchange.com/questions/Q.20142529.html
http://www.experts-exchange.com/questions/Q.20182454.html
http://www.experts-exchange.com/questions/Q.20182466.html
http://www.experts-exchange.com/questions/Q.20185946.html
http://www.experts-exchange.com/questions/Q.20186678.html
http://www.experts-exchange.com/questions/Q.20242470.html
http://www.experts-exchange.com/questions/Q.20263109.html
http://www.experts-exchange.com/questions/Q.20300091.html
http://www.experts-exchange.com/questions/Q.20300096.html
http://www.experts-exchange.com/questions/Q.20300511.html



*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643 
------> POINTS FOR EXPERTS awaiting comments are listed in the links below
http://www.experts-exchange.com/commspt/Q.20277028.html (Part 1)
http://www.experts-exchange.com/jsp/qShow.jsp?ta=commspt&qid=20295853 (Part 2)
 
Moderators will finalize this question if in @7 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
 
Thanks everyone.
Moondancer
Moderator @ Experts Exchange
0
 

Expert Comment

by:m75t
ID: 7026392
webwoman is right, if your choice of frames is for the loading-thing, than the frames have no use anymore. if you want this, you will always reload the pages ...
if you want to use frames to seperate the parts, this is still possible ...
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7068857
Finalized by Moondancer - EE Moderator
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Hide/ show a recordset row item 6 456
Getting the co-ordinates of a map 1 178
Edit Muse Website with Dreamweaver 6 1,162
Multiple HTML5 Videos – One player – Dreamweaver CS6 10 267
I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question