Keeping link highlited onClick - Possible?

I have a simple rollover link using the swap image and swap
image restore behaviors, but I want the link to stay the
onMouseOver color once it is clicked. Is this possible? I tried
adding an onClick behavior but it didn't work.
Essentiallly I am trying to get around having to generate a
navigation page unique to each link whereas the link pertaining to
the page they're viewing would be highlited so they know where they
are.
DW MX 2004

It's easy to do with CSS or with javascript.
With CSS you would have a little stylesheet embedded in the
head of each
page that allows you to set the down state for any given
button (each button
would have a unique id - for example -
<a href="foo.html" id="button1">...<a
href="bar.html" id="button2">
and then your stylesheet would have this -
a#button1 { styles }
on one page, and on another this -
a#button2 { styles }
See how that works?
With javascript, put this in script tags in the head of the
document -
function P7_downImage() {
var g7="<imagename>"
var g7url="<pathname>"
if ((g7=MM_findObj(g7))!=null) {g7.src=g7url;}
and this on the <body> tag
onload="P7_downImage()"
Then on each page you would need to make two edits:
Set g7 to the *name* of the button (not the file name but the
HTML name -
e.g., "productsbutt"), and g7url to the pathname to the
button (e.g.,
"images/nav/button3.gif"), and bada bing, bada boom!
There is an excellent tutorial here -
http://www.projectseven.com/support/answers.asp?id=126
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Tangier Clarke" <[email protected]> wrote
in message
news:e85uc6$4c3$[email protected]..
>I have a simple rollover link using the swap image and
swap image restore
> behaviors, but I want the link to stay the onMouseOver
color once it is
> clicked. Is this possible? I tried adding an onClick
behavior but it
> didn't
> work.
>
> Essentiallly I am trying to get around having to
generate a navigation
> page
> unique to each link whereas the link pertaining to the
page they're
> viewing
> would be highlited so they know where they are.
>
> DW MX 2004
>

Similar Messages

  • Where can I get a 32-bit Itunes? The download page keeps linking to a 64-bit version.

    The Apple download pages keeps linking me to a 64-bit download. Not a 32-bit.

    Itunes for windows 32 bit is 10.3.1 Go to apple downloads and type in itunes 10.3.1. Should give you a link.

  • Wireless printer keeps linking up with neighbors router

    My wireless printer keeps linking with my neighbors router when I turn it on, even though it's sitting right next to my router. If I ask my neighbor to turn his router off then my printer will link with my router. What's happening here and how can I fix it?

    You can try to set the security on your router and input all the wireless settings on your printer manually. So it will not keep on linking with your neighbors wireless network.

  • How to keep links in a pdf converting from MAc word

    Hey.
    I need to create a pdf with a document created in MAC word - and keep the links.  This doesn't seem to be working.
    Help??

    That makes sense. So I guess it looks like I have 2 options.
    1. Put the JS short code in and have it open the link in a new window if the user opens it in adobe. If a google chrome user opens it in the default viewer, they wont be able to use the link at all.
    2. Leave the link how it is, and it will be usable in both viewers, but will not open it in a new window.
    I am sureprised that opening the link in a new window isn't just an option in Acrobat Pro. I wouldn't think you'd have to make a workaround like this.
    Is there an alternative way to have a page link on the form so that people can go to another .pdf whil keeping the main one open?

  • Move a file to another computer and back and keep links from breaking?

    I have a high school kid neighbor who is going to work on some pages that are on my site, but she does not have the site or access to the server.  I want to give her the page on a thumb drive to work on in Dreamweaver on her computer. The pages have links and graphics already in them that work.  After she updates the words on the page, I want to then get it back from her and put it back into my local disk version. 
    When I tried this, all the existing  links to the images were broken when I copied her page back into my local Dreamweaver site folder .  How should I move the page to her computer and back so that when I get it back the image and other links that were valid when I gave it to her are still valid?  Using the Mac's Operating system file manager isn't the answer it seems.
    Thanks
    Hank

    Hi Hank,
    one possibility would be your school kid neighbor generates by using a file manager a directory tree that is a mirror image of your tree. For example:
    So the respective links should be identical.
    Hans-G.

  • Archive/remove attachments but keep link to file in emails

    Hello,
    I have been browsing and googling extensively but didn't find a solution for what I am trying to do:
    I have quite a large email folder in the ~/Library (around 90GB+) and I am trying to reduce that size.
    For this I want to remove all or most of the attachments (or at least the biggest ones).
    Removing and saving the attachments to a folder is pretty easy.
    Once the attachment is removed from the email, I would like to be able to go back to this email and see a mention that (for example):
    'The attachment has been removed on [Date] at [Time]"
    with mention of the files names, the path at the time of the saving and for each file a link to the saved location on the disk.
    Is there any way to do that?
    Any software or mail plugin??
    Any help would be appreciated,
    Thanks in advance
    Eric

    Hi Sarah,
    Thanks for the reply.
    What my clients want to accomplish is is to package all the separate .js files for the website into one file, so all the pages load faster.
    This includes the Animate.js files which are only to be used for the home page, so of course random animations appear on the rest of the pages which don't have the animate DIVs in them.
    I have suggested they package all the .js files EXCEPT the animate.js ones and just load them separately on the page the animations are to appear on.
    But they are still wanting to do them all in one package however (!!) so my question is:
    Can some code be added to the animate.js files that says something like "if these DIVs are not found, make the animation do nothing"?
    It is possible the relevant code cannot be added in which case they will have to do the animate.js files separately, but as they have asked me about it I thought I would ask people in the forum if they knew how to accomplish this.
    Cheers,
    Jim

  • How to keep links from being broken when moved or file is later split

    Which is the best way to make sure that a link to another pdf file is not broken when a file is emailed or moved to a new location off of the server?  Should you link a destination or use the hyperlink feature?
    If the links are created and the file then has to be split, will the links be retained in the split files?

    PDF moved —
    PDF#1 has a link to PDF#2. To keep this link functional after putting PDF#1 elsewhere:
    --| Relocate PDF#2 with PDF#1; maintaining the same path to the target of the link (which is PDF#2).
    --| Or, use Acroat's link tool to modify the link in PDF#1 so that you establish a functional path to wherever PDF#2 is at.
    For email, if PDF#1 & PDF#2 are adjacent to one another under some folder/directory & then linked you'd want to email both files together. Both PDFs can be saved &, provided they stay adjacent, the links will work.
    PDF split —
    PDF#3 has internal links (e.g., a link from PDF page 1 to some other PDF page in PDF#3).
    You split PDF#3 by extracting the first 5 PDF pages & now have PDF#4.
    Any links in PDF#4, to PDF#3 pages past page 5 will not function.
    Use Acrobat's Link tool to modify the link such that it goes from PDF#4 to the desired page in PDF#4.
    n.b., There are 3rd party plug-ins for Acrobat that can facilitate bookmark and link management.
    A web search will provide a listing.
    Be well...

  • Adding user to the oracle database using database link - is it possible?

    Hi, i wolud like to manage my databases using one client. I easilly operate on my distriubuted tables but i have problem with creating users in distribiuted database. Is it possible to create users in distributed database using database links? or it have to be done locally using some stored procedures or sth similar?

    The SQL syntax of the CREATE USER statement doesn't support DB links, the only way to do it would be with stored procedures. There might be an Oracle SP for that or for generic remote execution of SQL, but I'm not familiar with such.

  • Website to PDF - Keeping links ...

    Hi
    I've been asked to do a job where I have to convert a website so that each page is a pdf.
    I have done this using the convert web to pdf website which is free and brilliant.  It keeps the links which is impressive.
    However it plonks a logo down the bottom of the convert2pdf website down the bottom which the client doesnt want.  He also wants various other things link at the top of each web page there is a "join the mailing list" bit which he wants removed.
    I thought of bringing the pdf into indesign and just covering the things he doesnt want with white boxes and re-pdfing but then the links disapear.
    Any ideas anyone?
    Cheers
    S

    I have tried to use this function but the page doesnt come out in the correct format.  It seems to take the menu bar and make it into a list, one under the other!
    Cheers
    S

  • Print PDF from link... possible?

    Is it possible to print a PDF file when you click a link. I
    don't want
    to open the PDF first and print it from there?
    Is it possible?
    Kim
    http://www.geekministry.com

    You might check the Dreamweaver Developer Page -
    http://www.adobe.com/devnet/
    But... I really doubt it is possible to send something
    directly to a printer without opening the program that is able to
    READ the file and send the proper formatting to the printer... and
    that means opening the file
    Added... the little I know about printing
    Any file, by itself, is just so much "garbage data" if you
    WERE able to drag and drop it on a printer icon
    Each file type consists of a unique arrangement of bits and
    bytes
    The file is both displayed on a computer screen and
    intepreted for printing by the program that reads the file
    When printing, a data stream is sent by that program to the
    printer's software... which converts that data stream into commands
    to the printer about where to print a pixel (may be wrong term) and
    how many close together (such as letters) or "scattered" such as a
    gray background
    I just don't think it is possible to send a document directly
    to a printer, without the software that reads the type of file
    being open to format the data and interface with the printer
    driver

  • Keeping same file name possible in Compressor 4.1.2?

    Is keeping the same file name possible in Compressor 4.1.2?

    Click twice in the File name field and you can change it. Of course, you need to save it to a different location than the source file.
    Russ

  • Clickable Link in iDVD - Possible?

    Hi
    I've got a feeling that I know the answer to this one, but I'll ask anyway.
    Is it possible to put a clickable link onto a DVD produced in iDVD?
    For example if someone wanted to put the produced DVD in to a Mac (or indeed a PC) and click a link to take them to a website? You know the sort of thing I mean...Like "extras" on Music CD's and some Commercially produced DVD's
    Thanks

    Yeah, I suppose I knew that was coming. Oh well...thanks for answering anyway.

  • Change Visited Link Color onClick of EPCM function

    Hi we have a link within an iview which when clicked opens another iview in the Portal Content Area. We are achieving that using EPCM.doNavigate function. The requirement is to change the link color when visited. We tried using both style sheet and also this.style.color, however, it doesn't take into affect. The same thing when used with a normal href or a js function changes its color.
    response.write("<td style='padding: background='"strImagePath"/header-background.gif'><a href=\"" + strQuickLinkName + "\"" +  " onclick=\"EPCM.doNavigate(\'" + strChildNodeName + "\'); return false;\" class='Archive'>Archive</a></td>");
    Is it that EPCM function doesn't act like normal java scripts or do we need to use any other alternative approach?

    On criagslist, however, it doesn't work.
    That sounds odd. When I visit craigslist, the links are blue; they turn purple when I hover over them, and orange when I actually click on them. And since it works on other sites, I'll venture a guess that the site was created with Windows users in mind, so it doesn't adhere to web standards, which is why it works fine with IE and Firefox, since they're both prominent browsers on Windows.
    Mulder

  • Document.links[0].onclick getting is null error in firefox 9 working fine below version 9

    in js I have written following line of code to navigate back , home pages. this code works fine upto version 8 but not working in version 9 and above
    <br />
    <pre><nowiki><a href="#" onClick="goBack();" >Back to Previous</a>
    function goBack(){
    //Disabled the action of the link after first click to avoid repeated click events-Sreejesh
    //once the action is compleated It will be activated by the function 'doCommonLoad' in commonfunctions.js
    objLinks = document.links;
    alert(objLinks.length);
    for(i=0;i<objLinks.length;i++){
    alert(objLinks[i]);
    if(objLinks[i].onclick.toString().indexOf("goBack")>0){
    objLinks[i].style.color="grey";
    objLinks[i].removeAttribute('onClick');
    if(taskList == true){
    if (secondFrame == "tasklistframe") {
    hideFrame("inboxframe");
    minimizeFrame("tasklistframe");
    } else {
    hideFrame("tasklistframe");
    minimizeFrame("inboxframe");
    // if(twoFrames = false)
    // maximize('maincontentframe');
    if(document.getElementById("statusbar").style.display == 'none')
    document.getElementById("statusbar").style.display = 'block';
    document.getElementById("mainMin").style.visibility = "visible"
    parent.document.getElementById("hiddenframe").src="hidden.jsp?action=MENU_GO_BACK";
    }</nowiki></pre>
    it gives error in js as -- objLinks[i].onclick is null when I click on the link

    The following forum is a better place to ask about web development issues.
    http://forums.mozillazine.org/viewforum.php?f=25
    Before doing that though, you should try this with Firefox 16.0.1.[[Update Firefox to the latest version]]

  • Trying to paste pdf into mail and keep links active

    I've created a pdf in iWork with active links. When I copy and paste it into Mail the links stop working. Anyone know how to keep the links active?
    iMac   Mac OS X (10.4.6)  

    You attach pdfs to email. I have never met a pdf reader that works inside a mail client.
    Links, inactive or not, are a separate problem. Under what circumstances do they not work for you?

Maybe you are looking for

  • Text validation widget bug?

    I have used text validation in a table body like this: <table style="width:20%"> <tbody id="login_val"> <tr><td>E-Mail</td><td><input name="login" id="login" type="text"></td></tr> <tr class="textfieldRequiredMsg"><td colspan="2">Enter your login E-M

  • Query parsing error for Chart.

    Hi, I am trying to understand the query structure for drawing charts . I am not sure why this query doesn't work. Any help will be appreciated. select null link, category label, count (decode(p.category,'Accessories')) "Accessories", count (decode(p.

  • Web service application instance

    I am building a LV2009 web services application (main.exe + web services).  The web service VI's share globals with the main.exe.  I think that the web services run under a separate application instance, therefore using globals will not work directly

  • Session based load balance + Prepared statements

    Experts, From the docs I understand that there are 3 load balancing techniques. One is client side and two are server side. Of the two, one is session count based load balancing, and as per docs, it is recommended for connection pool setting. My ques

  • PI sheet data from external system for GI and GR

    Hi Gurus, I need a help to set up a PI sheet related config (type 2 or 3 of CRD), wherein I will get the GI and GR related information from the external system , eg Bar code scanner and some PC automation etc. Regards, Amol Kale