Log in

View Full Version : link that remembers



hall2003
08-24-2007, 08:13 PM
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 0n:off )

Rockonmetal
08-24-2007, 11:43 PM
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)


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

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