| View previous topic :: View next topic   | 
	
	
	
		| Author | 
		Message | 
	
	
		Noodlez <3
  Reputation: 1
  Joined: 27 Oct 2007 Posts: 744 Location: Hyrule
  | 
		
			
				 Posted: Mon May 31, 2010 11:30 am    Post subject: [Help]Embedding a song | 
				       | 
			 
			
				
  | 
			 
			
				I want to upload a song and have it play when people visit the webpage
 
 
+rep for answer
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		nwongfeiying Grandmaster Cheater
  Reputation: 2
  Joined: 25 Jun 2007 Posts: 695
 
  | 
		 | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Cryoma Member of the Year
  Reputation: 198
  Joined: 14 Jan 2009 Posts: 1819
 
  | 
		
			
				 Posted: Mon May 31, 2010 4:23 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				
 
That's not the easiest way at all.
 
 
 	  | Code: | 	 		  <SCRIPT TYPE="text/javascript">
 
<!-- 
 
var filename="changeme.mp3";
 
if (navigator.appName == "Microsoft Internet Explorer")
 
    document.writeln ('<BGSOUND SRC="' + filename + '">');
 
else if (navigator.appName == "Netscape")
 
    document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>');
 
// -->
 
</SCRIPT>
 
<NOSCRIPT>
 
<BGSOUND SRC="changethisalsotothesamething.mp3">
 
</NOSCRIPT>
 
 | 	  
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Cheat Engine User Something epic
  Reputation: 60
  Joined: 22 Jun 2007 Posts: 2071
 
  | 
		
			
				 Posted: Mon May 31, 2010 5:22 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | Stone wrote: | 	 		  
 
That's not the easiest way at all.
 
 
 	  | Code: | 	 		  <SCRIPT TYPE="text/javascript">
 
<!-- 
 
var filename="changeme.mp3";
 
if (navigator.appName == "Microsoft Internet Explorer")
 
    document.writeln ('<BGSOUND SRC="' + filename + '">');
 
else if (navigator.appName == "Netscape")
 
    document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>');
 
// -->
 
</SCRIPT>
 
<NOSCRIPT>
 
<BGSOUND SRC="changethisalsotothesamething.mp3">
 
</NOSCRIPT>
 
 | 	 
  | 	  What the hell is that code for? Sounds a bit overdone since Netscape isn't used by 99.99% of all people and the code is reinserted by the javascript
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Cryoma Member of the Year
  Reputation: 198
  Joined: 14 Jan 2009 Posts: 1819
 
  | 
		
			
				 Posted: Mon May 31, 2010 5:40 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | Holland wrote: | 	 		   	  | Stone wrote: | 	 		  
 
That's not the easiest way at all.
 
 
 	  | Code: | 	 		  <SCRIPT TYPE="text/javascript">
 
<!-- 
 
var filename="changeme.mp3";
 
if (navigator.appName == "Microsoft Internet Explorer")
 
    document.writeln ('<BGSOUND SRC="' + filename + '">');
 
else if (navigator.appName == "Netscape")
 
    document.writeln ('<EMBED SRC="' + filename + '" AUTOSTART=TRUE WIDTH=144 HEIGHT=60><P>');
 
// -->
 
</SCRIPT>
 
<NOSCRIPT>
 
<BGSOUND SRC="changethisalsotothesamething.mp3">
 
</NOSCRIPT>
 
 | 	 
  | 	  What the hell is that code for? Sounds a bit overdone since Netscape isn't used by 99.99% of all people and the code is reinserted by the javascript | 	  
 
Fine, just being thorough.
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		CrisNMP Fun Supervisor
  Reputation: 16
  Joined: 11 Apr 2007 Posts: 4649
 
  | 
		
			
				 Posted: Mon May 31, 2010 10:07 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				
 
if you're going for flash is better to just make the swf(1px x 1px) with the song playing. Is also really easy
 _________________
  
 
BENBENBENBENBENBENBENBEN | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Cryoma Member of the Year
  Reputation: 198
  Joined: 14 Jan 2009 Posts: 1819
 
  | 
		
			
				 Posted: Mon May 31, 2010 10:14 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | CrisNMP wrote: | 	 		  
 
if you're going for flash is better to just make the swf(1px x 1px) with the song playing. Is also really easy | 	  
 
Why 1x1?
 
It can be any dimension and just transparent.
 
Or better yet, put content in it.
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		CrisNMP Fun Supervisor
  Reputation: 16
  Joined: 11 Apr 2007 Posts: 4649
 
  | 
		
			
				 Posted: Tue Jun 01, 2010 2:58 pm    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				 	  | Stone wrote: | 	 		   	  | CrisNMP wrote: | 	 		  
 
if you're going for flash is better to just make the swf(1px x 1px) with the song playing. Is also really easy | 	  
 
Why 1x1?
 
It can be any dimension and just transparent.
 
Or better yet, put content in it. | 	  
 
wmode was fucked in google chrome last time i checked
 _________________
  
 
BENBENBENBENBENBENBENBEN | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Cheat Engine User Something epic
  Reputation: 60
  Joined: 22 Jun 2007 Posts: 2071
 
  | 
		 | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		Dataflashsabot Newbie cheater
  Reputation: 0
  Joined: 18 Mar 2010 Posts: 16
 
  | 
		
			
				 Posted: Wed Jun 16, 2010 8:09 am    Post subject:  | 
				       | 
			 
			
				
  | 
			 
			
				use html5 <audio>
 
any decent browser can use it
 | 
			 
		  | 
	
	
		| Back to top | 
		 | 
	
	
		  | 
	
	
		 |