Results 1 to 2 of 2

Thread: link that remembers

  1. #1
    Join Date
    Aug 2007
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default link that remembers

    1) Script Title:

    2) Script URL (on DD):

    3) Describe problem:

    can some 1 please help me, im not sure if this is possible and i will try my best to put this as simple as i can.

    i am trying to make a hyperlink that will load 2 pages..... page 1 and page 2 from the same link.

    when the link is 1st clicked i need page 1 to load targeted into a frame on my page, and when the same link is clicked again i need it to not load page 1 again but load page 2 into the same frame on my page

    (i basically have a music player hidden in a topframe on my site and the frame is not visible, i need 1 link that can turn on the music player and load the on page to the top frame but from the same link if you clik it again also switch pages in the top frame to turn it off..

    i know i could just use 2 hyperlinks for this but i need it from 1 link....

    example of the link i need ( music 0nff )

  2. #2
    Join Date
    Jan 2007
    Location
    The stage
    Posts
    568
    Thanks
    23
    Thanked 6 Times in 6 Posts

    Default

    Ok, I think I get what your saying...
    Your saying that your trying to load a hidden music player *in a hidden frame* and then the page the user inteaded to go to *example: home page or something like that*...

    Now, you could use a hidden <div> tag by doing this
    first step (making it hidden)
    Code:
    <style type="text/css">
    .hiddenmusicplayer{
    visiblity: hidden;
    }
    </style>
    Put the css code above into the head *or into a stylesheet if you have one*

    Now to put it in there:
    Code:
    <div class="hiddenmusicplayer">Put your music player content here</div>
    Place that code above into the body of your page...

    Advantages of it:
    Will be totally invisible
    Disadvantages:
    If user refreshs or changes url the music will stop, and if goes to another page with this on it, will not continue.

    If you want the music to continue if the user clicks any links (except for links to the same page) on your site, hold on because i might have a solution *using Ajax...*
    Last edited by Rockonmetal; 08-25-2007 at 06:07 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •