Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help]Embedding a song

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Web Development
View previous topic :: View next topic  
Author Message
Noodlez
<3
Reputation: 1

Joined: 27 Oct 2007
Posts: 744
Location: Hyrule

PostPosted: Mon May 31, 2010 11:30 am    Post subject: [Help]Embedding a song Reply with quote

I want to upload a song and have it play when people visit the webpage

+rep for answer
Back to top
View user's profile Send private message Send e-mail
nwongfeiying
Grandmaster Cheater
Reputation: 2

Joined: 25 Jun 2007
Posts: 695

PostPosted: Mon May 31, 2010 12:14 pm    Post subject: Reply with quote

The easiest way is to use a .SWF music player play it. Host the media file on a site then configure your music player to that file.

http://www.tsplayer.com/

or

http://musicplayer.sourceforge.net/
Back to top
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Mon May 31, 2010 4:23 pm    Post subject: Reply with quote

nwongfeiying wrote:
The easiest way is to use a .SWF music player play it. Host the media file on a site then configure your music player to that file.

http://www.tsplayer.com/

or

http://musicplayer.sourceforge.net/

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
View user's profile Send private message
Cheat Engine User
Something epic
Ban
Reputation: 60

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Mon May 31, 2010 5:22 pm    Post subject: Reply with quote

Stone wrote:
nwongfeiying wrote:
The easiest way is to use a .SWF music player play it. Host the media file on a site then configure your music player to that file.

http://www.tsplayer.com/

or

http://musicplayer.sourceforge.net/

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
View user's profile Send private message
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Mon May 31, 2010 5:40 pm    Post subject: Reply with quote

Holland wrote:
Stone wrote:
nwongfeiying wrote:
The easiest way is to use a .SWF music player play it. Host the media file on a site then configure your music player to that file.

http://www.tsplayer.com/

or

http://musicplayer.sourceforge.net/

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
View user's profile Send private message
CrisNMP
Fun Supervisor
Reputation: 16

Joined: 11 Apr 2007
Posts: 4649

PostPosted: Mon May 31, 2010 10:07 pm    Post subject: Reply with quote

nwongfeiying wrote:
The easiest way is to use a .SWF music player play it. Host the media file on a site then configure your music player to that file.

http://www.tsplayer.com/

or

http://musicplayer.sourceforge.net/

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
View user's profile Send private message Visit poster's website MSN Messenger
Cryoma
Member of the Year
Reputation: 198

Joined: 14 Jan 2009
Posts: 1819

PostPosted: Mon May 31, 2010 10:14 pm    Post subject: Reply with quote

CrisNMP wrote:
nwongfeiying wrote:
The easiest way is to use a .SWF music player play it. Host the media file on a site then configure your music player to that file.

http://www.tsplayer.com/

or

http://musicplayer.sourceforge.net/

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
View user's profile Send private message
CrisNMP
Fun Supervisor
Reputation: 16

Joined: 11 Apr 2007
Posts: 4649

PostPosted: Tue Jun 01, 2010 2:58 pm    Post subject: Reply with quote

Stone wrote:
CrisNMP wrote:
nwongfeiying wrote:
The easiest way is to use a .SWF music player play it. Host the media file on a site then configure your music player to that file.

http://www.tsplayer.com/

or

http://musicplayer.sourceforge.net/

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
View user's profile Send private message Visit poster's website MSN Messenger
Cheat Engine User
Something epic
Ban
Reputation: 60

Joined: 22 Jun 2007
Posts: 2071

PostPosted: Tue Jun 01, 2010 4:16 pm    Post subject: Reply with quote

http://www.w3schools.com/css/pr_class_visibility.asp << what the pros use these days.
Back to top
View user's profile Send private message
Dataflashsabot
Newbie cheater
Reputation: 0

Joined: 18 Mar 2010
Posts: 16

PostPosted: Wed Jun 16, 2010 8:09 am    Post subject: Reply with quote

use html5 <audio>
any decent browser can use it
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Web Development All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites