|
|
#1 |
|
Fully Optimized
Join Date: Nov 2006
Posts: 3,110
|
I'm designing a webpage, its been quite a while since I have made them, I remember making one that was split, into two separate pages in the same window, does anyone have the HTML code for that? The main idea here is to have music playing while you search the site so it doesn't restart every time you load a new page.
__________________
2.4 Ghz celeron, 1.25 PNY pc 2700 RAM,PNY VERTIGO 5200 FX , 40 GB HDD 900Mhz 256 RAM , MX 4000, 30 GB HDD 1.9Ghz dual core AMD Athlon 2 GB 384 VRAM 320 Gb HD 2.3 tricore phenom,2 GB RAM , EVGA 9600 GSO,250 GB SSD 2.6 X4 620, 4GB RAM, 9600 GSO, 500 GB HDD/I'm part of The Project |
|
|
|
|
|
#2 |
|
Cheesoid
|
There are multiple ways of doing this.... The "best" way would proberbly be to use AJAX to just load new content into the page when you click on a link. The other way would be to use a Frameset... But they are being phased out really, and arnt looked on very highly.
|
|
|
|
|
|
#3 |
|
Fully Optimized
Join Date: Nov 2006
Posts: 3,110
|
ok, I'm really basic in javascript, is there anyway to copypasta the mp3 and the other page links into an existing script? if not how do you set page frames, This is for nothing big, its a site for me and about 25 other people to use.
__________________
2.4 Ghz celeron, 1.25 PNY pc 2700 RAM,PNY VERTIGO 5200 FX , 40 GB HDD 900Mhz 256 RAM , MX 4000, 30 GB HDD 1.9Ghz dual core AMD Athlon 2 GB 384 VRAM 320 Gb HD 2.3 tricore phenom,2 GB RAM , EVGA 9600 GSO,250 GB SSD 2.6 X4 620, 4GB RAM, 9600 GSO, 500 GB HDD/I'm part of The Project |
|
|
|
|
|
#4 |
|
In Runtime
|
I believe what you are referring to is frames.
Here is an explanation: http://www.w3schools.com/htmL/html_frames.asp. I would STRONGLY advise against using frames, since many browsers have compatibility issues with displaying them. The other option is using an iframe (essentially the same thing, still not supported well, but more so than traditional frames). Here is a link: http://www.w3schools.com/TAGS/tag_iframe.asp. The problem you run into here is the stateless nature of the http protocol. If you were to use ajax, it would have to be part of a much larger solution than copy-pasting some code. Take this website for example: 2 Advanced The music remains (without re-loading) on every page, BUT... The entire page is flash. While their appears to be a re-load of the whole page, closer inspection of the url on each page reveals that you are still looking at the same page. As a rule of thumb for me: Unless the audio is loaded into an swf and pre-loaded properly, don't use audio on your website. Partially because you run into codec problems and bandwidth problems. The ajax requests for returning an audio file would most likely kill any bandwidth limit you have setup with your ISP. Hope this helps. Let me know if you have any other questions/concerns.
__________________
**Official Self-proclaimed glorified excessive (insert additional adjectives here) post editor/modifier. Edit = Best feature ever http://www.twitter.com/xDaevax |
|
|
|
|
|
#5 |
|
Cheesoid
|
I'm not suggesting that the audio file be loaded dynamically, just the text content for the site.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|