How to make All Web pages with one link., So the music player on top doesnt stop and over again! |
How to make All Web pages with one link., So the music player on top doesnt stop and over again! |
Dj Sunny |
Nov 9 2010, 06:45 AM
Post
#1
|
Group: Members Posts: 3 Joined: 9-November 10 Member No.: 13,106 |
Hi Everyone,
is there any way i can make a web page with only one link just like this website below. http://www.nachda-punjab.org/ If you notice when you click on Home/Teams/Sponsorship they all have one link showing which is " http://www.nachda-punjab.org/# " . The only reason i wana do that is i have a music player on top of the page and i have to put the music player code on all the pages and when someone click on the other link and the music starts playing from the beginning. I just want the same as that website like i dont want the music to start playing over. Help Me Guys. |
pandy |
Nov 9 2010, 11:38 AM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
It's a single page. All of the content is there already, but most of it hidden from start with CSS. Then JS manipulates CSS to show a specific section when a link i clicked. It's badly implemented on that page though, because if JS is disabled but CSS is available the content is forever hidden.
Google javascript+CSS+hide+show Here's an article on the subject. http://www.alistapart.com/articles/eatcake/ |
pandy |
Nov 9 2010, 11:52 AM
Post
#3
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Oops! I jumped to conclusions. That's not how they do it. They seem to use AJAX trickery to load different content. That means the page is totally JS dependent. Not good IMO.
|
Dj Sunny |
Nov 9 2010, 11:55 PM
Post
#4
|
Group: Members Posts: 3 Joined: 9-November 10 Member No.: 13,106 |
|
Darin McGrew |
Nov 10 2010, 01:49 AM
Post
#5
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
The better way to do it is the way described in the link pandy linked to earlier:
http://www.alistapart.com/articles/eatcake/ |
Dj Sunny |
Nov 10 2010, 05:55 AM
Post
#6
|
Group: Members Posts: 3 Joined: 9-November 10 Member No.: 13,106 |
The better way to do it is the way described in the link pandy linked to earlier: http://www.alistapart.com/articles/eatcake/ Is there any other way? i just want my music not to reload or play on every page.Thank you So much guys. |
Christian J |
Nov 10 2010, 06:00 AM
Post
#7
|
. Group: WDG Moderators Posts: 9,628 Joined: 10-August 06 Member No.: 7 |
How about opening the music player in a popup window?
|
pandy |
Nov 11 2010, 08:18 AM
Post
#8
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Or frames. But for many reasons Christian's suggestion is better. Mine was just for the record.
|
Lo-Fi Version | Time is now: 19th March 2024 - 05:31 AM |