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 (1 - 3)
aznhybriddragon
post Feb 5 2004, 02:10 AM
Post #2


Senior Member
*****

Group: Member
Posts: 946
Joined: Jan 2004
Member No: 603



I think u are looking for this, Its a On and Off Button thing, change http://yoursite.com/musicfilename.wma and use


CODE
<!-- begin code provided by createblog.com -->
<OBJECT ID="Player" height="0" width="0"
 CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
</OBJECT>

<INPUT TYPE="BUTTON" NAME="BtnPlay" VALUE="Play" OnClick="StartMeUp()">
<INPUT TYPE="BUTTON" NAME="BtnStop" VALUE="Stop" OnClick="ShutMeDown()">

<script>
<!--

function StartMeUp ()
{
   Player.URL = "http://yoursite.com/musicfilename.wma";
}

function ShutMeDown ()
{
   Player.controls.stop();
}

-->
</SCRIPT>
<!-- end code provided by createblog.com -->
 
Nay
post Feb 5 2004, 07:36 AM
Post #3


Senior Member
***

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



hmmm, what's the code that you are using? If you're going to have 2 songs. Then one has to stop onclick of the splash page image. Note that with embed, you must have mastersound and a name/IDREF attribute.

Example:

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

<embed src="file.mp3" autostart="true" hidden="true" loop="false" MASTERSOUND></embed>

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


I'm sure it should work with different file formats such of .ra, .wma, .mp3 etc. It'd help if you posted the code...

-Nay
 
Nay
post Feb 5 2004, 07:43 AM
Post #4


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
 

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