Log In · Register

 
music problems again, for some odd reason....
Tal_Dara
post Feb 5 2004, 01:40 AM
Post #1


I run this town.
*****

Group: Member
Posts: 582
Joined: Jan 2004
Member No: 1,867



ok so you would think i would be finished with my music problems, right? Wrong, as of now this is my problem.

I have a realplayer on/off switch for my music on my xanga. the problem is that this music auto-starts onto my splash page. Now I wouldn't have a problem with this but the thing of it is is that my splash page has its own music, so i dont want my music to clash with one another. I would like to keep both my splash page music and my main page music seperate.

If someone can give me a good on/off music switch for my main page so it wont play on my splash page that would be awesome. I hope I didnt make this too confusing. I tried my best to break it down for you as best as i could.
 
 
Start new topic
Replies
Nay
post Feb 5 2004, 07:43 AM
Post #2


Senior Member
***

Group: Member
Posts: 67
Joined: Feb 2004
Member No: 2,477



Okay, so I hunted through your source code. Try to get it more organized. One song is on top while the other is at the bottom. Sure the first song is in a Javascript string so there's not much to do about it. Go like this:

Javascript
CSS
HTML
Javascript
CSS
HTML

It'll be much cleaner. Anyhow, here's the thing. I'm guessing that both songs are starting even on the splash page. Here's a fix:

CODE
<!-- begin code provided by createblog.com -->

// splash page script
<script type='text/javascript'>
// intro splash page by micron
// for more xanga scripts and help go to createblog.com

// change this url to an image of your choice
var image = 'http://www.xanga.com/home.aspx?/user=Tal_Dara/IMAGE.jpg';

function enterSite() {
document.getElementById('splash').style.display = 'none';
var content = document.getElementsByTagName("center");
for (var i=0; i<content.length;i++) {
content[i].style.display = 'block';
}
document.music.stop();
document.siteMusic.play();
return false;
}

if (document.title.slice(-10) == 'Xanga Site') {
document.write('</span></center><style type="text/css"> center {display:none;} .image {border:1px solid #dcdcdc;} </style><embed src="http://www.audiocrunch.com/song/darkambience.mp3" loop="true" hidden="true" name="music" id="music" autostart=TRUE MASTERSOUND></embed><table height="100%" width="100%" id="splash"><tr><td align="center" valign="middle" style="text-align:center !important;"><a href="#" onclick="return enterSite();"><img src="http://www.angelfire.com/emo2/mehtravis/dient.jpg" border="0" class="image"></a></td></tr></table><center><span>');
}
</script>

// music
<embed src="http://halovision.avidnewmedia.com/DAS/hv/files/audio.mp3" autostart="false" loop="true" hidden="true" name="siteMusic" MASTERSOUND></embed>

<!-- end code provided by createblog.com -->


-Nay
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: