Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Rollover images staying after clicking on it!

Posted on 2002-05-13
Medium Priority
Last Modified: 2010-04-25
  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?


Question by:PUB_UL
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
  • 3
  • +1

Expert Comment

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">
  <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!

LVL 19

Accepted Solution

webwoman earned 300 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.

Expert Comment

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.
[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.


Author Comment

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.

LVL 19

Expert Comment

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.

Expert Comment

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.

Author Comment

ID: 7016987

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..
LVL 19

Expert Comment

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.

Author Comment

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

Expert Comment

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.

Expert Comment

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.
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.

*****  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
------> 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.
Moderator @ Experts Exchange

Expert Comment

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 ...

Expert Comment

ID: 7068857
Finalized by Moondancer - EE Moderator

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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 …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

618 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