Post by Tylr on Jan 6, 2007 11:57:48 GMT -8
<script language="JavaScript">
<!--
// Fastery Splashy Withity Musicy By T.J.
// Original: support.proboards.com
var splashimgsrc="splash IMG URL" // URL of splash image
var ismusic="yes" // Yes if you have music, no if you don't.
var musicurl="music URL" // URL of music
var firstvis="yes" // Yes means music will play only on the first page the user visits
var isloop="yes" // Yes means music will loop, no means it will only play once
if(isloop=="yes"){
var howloop="-1"
}
if(isloop=="no"){
var howloop="1"
}
if(!location.href.match('index.cgi')){
var td=document.getElementsByTagName('td')
for(i=0;i<td.length;i++){
td.style.display='none'
}
function go(){
var td=document.getElementsByTagName('td')
for(i=0;i<td.length;i++){
td.style.display=''
document.splshimg.style.display='none'
}
}
document.write('<center><img src="'+splashimgsrc+'" onclick="go()" name="splshimg"></center>')
if(firstvis=="yes" && ismusic=="yes"){
document.write('<embed src="'+musicurl+'" autostart="true" hidden="true" loop="'+howloop+'">')
}
}
if(firstvis=="no" && ismusic=="yes"){
document.write('<embed src="'+musicurl+'" autostart="true" hidden="true" loop="'+howloop+'">')
}
// -->
</script>
Should be fairly straight forward, I would reccomend putting this code in your Main Footer, though Global Footer will work as well, if you want the music player on every page. I also reccomend the current settings, the orange can be changed to no if you want the msic to play on every page. Why would you want to use this code over others? First, the music will not reload between the splash page and the homepage, it will keep playing. Second, even if you're not using music, it is not actually reloading another page. This means that there is no load time between clicking the splash image and loading your homepage, which is useful for those with slow browsers.
(Repost if header stays in tact)
<!--
// Fastery Splashy Withity Musicy By T.J.
// Original: support.proboards.com
var splashimgsrc="splash IMG URL" // URL of splash image
var ismusic="yes" // Yes if you have music, no if you don't.
var musicurl="music URL" // URL of music
var firstvis="yes" // Yes means music will play only on the first page the user visits
var isloop="yes" // Yes means music will loop, no means it will only play once
if(isloop=="yes"){
var howloop="-1"
}
if(isloop=="no"){
var howloop="1"
}
if(!location.href.match('index.cgi')){
var td=document.getElementsByTagName('td')
for(i=0;i<td.length;i++){
td.style.display='none'
}
function go(){
var td=document.getElementsByTagName('td')
for(i=0;i<td.length;i++){
td.style.display=''
document.splshimg.style.display='none'
}
}
document.write('<center><img src="'+splashimgsrc+'" onclick="go()" name="splshimg"></center>')
if(firstvis=="yes" && ismusic=="yes"){
document.write('<embed src="'+musicurl+'" autostart="true" hidden="true" loop="'+howloop+'">')
}
}
if(firstvis=="no" && ismusic=="yes"){
document.write('<embed src="'+musicurl+'" autostart="true" hidden="true" loop="'+howloop+'">')
}
// -->
</script>
Should be fairly straight forward, I would reccomend putting this code in your Main Footer, though Global Footer will work as well, if you want the music player on every page. I also reccomend the current settings, the orange can be changed to no if you want the msic to play on every page. Why would you want to use this code over others? First, the music will not reload between the splash page and the homepage, it will keep playing. Second, even if you're not using music, it is not actually reloading another page. This means that there is no load time between clicking the splash image and loading your homepage, which is useful for those with slow browsers.
(Repost if header stays in tact)