Clan Adverts

PHP Web Host - Quality Web Hosting For All PHP Applications

 

www.clan-themes.co.uk :: View topic - Play a single sound on entry to website

 Welcome To Clan Themes 

As the board grows please remember the Search Option and we hope you find our community useful.

We also monitor Private Messages to stop members from abusing our sites system.
If you are asking for assistance please provide your site link and nuke version, Thanks.

Play a single sound on entry to website

6 Replies / 715 Views


Post new topic   Reply to topic  

   www.clan-themes.co.uk Forum Index » How To's

View previous topic :: View next topic


DoC
Reputation: 163
votes: 4
Local time: 12:19 AM
Location: Wiltshire, UK
uk.gif

Status: Offline
0.67 posts per day
Medals: 1 (View more...)
Dedication (Amount: 1)
Very Important Person
Very Important Person
Joined: Feb 07, 2007
Last Visit: 02 Sep 2008
Posts: 390
Points: 1239 

Post Play a single sound on entry to website Posted: Sun Dec 23, 2007 10:01 pm   

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

Hey All,

I got a really small .mp3 file I want to play when someone enters my site I found this code:

Code:
<Embed src = your_file.mid Autostart=true Width=100 Height=50 Loop=1>


Can I use this in a file to make it play?

DoC
 

Play EVE Online? Go To: www.go-pdi.com & Join The Best Corp In The Universe!  
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

Ped
Reputation: 368
votes: 17
Local time: 12:19 AM
Location: Great British Empire
uk.gif

Status: Offline
2.58 posts per day
Medals: 2 (View more...)
Forums MoD (Amount: 1)
Clan Themes Theme Guru
Clan Themes Theme Guru
Joined: Nov 13, 2006
Last Visit: 06 Sep 2008
Posts: 1710
Points: 11558 

Post Play a single sound on entry to website Posted: Mon Dec 24, 2007 8:17 am   

I always find that sounds on sites are good for a hour or so, but then they get right on your tits ! lol

you can use this

Code:
<EMBED src="YOURSOUND.MP3" autostart="true" hidden="true" loop="false">


set the loop to true if you want the sound to repeat over and over.

This code needs to sit inside your header.php in the <head></head> tags, so same place as the snow script.

if you want to use the tags
 

 
View user's profileSend private messageSend e-mailVisit poster's website Reply with quote

DoC
Reputation: 163
votes: 4
Local time: 12:19 AM
Location: Wiltshire, UK
uk.gif

Status: Offline
0.67 posts per day
Medals: 1 (View more...)
Dedication (Amount: 1)
Very Important Person
Very Important Person
Joined: Feb 07, 2007
Last Visit: 02 Sep 2008
Posts: 390
Points: 1239 

Post Play a single sound on entry to website Posted: Mon Dec 24, 2007 9:31 am   

Shop Purchases:
Clan Roster v1.7 Php Nuke Module · Clan Roster 2.0

So on one line I put:

Code:
<head><EMBED src="welcome.mp3" autostart="true" hidden="true" loop="false"></head>


I have tried it a line above where the snow script is and also a line below the snow script and each edit stopped the site working completly LMAO

Code:


<!--
function wimpyPopPlayer(theFile,id,stuff) {
  window.open(theFile,id,stuff);
}
//-->


echo "<=\"javascript\" src=\"themes/PDi/scripts/snowstorm.js\">;
echo""
  . "<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">"

  . "<div align=\"center\">"
  . "<table width=\"980\" height=\"272\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
   . "<tr>"


Thats the begining of my header.php - please remember I had to take out any reference to script and also the php start marker etc...

DoC
 

 
View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote

trunks
Reputation: 485.1
votes: 1
Local time: 11:19 PM
Location: Over There --->
uk.gif

Status: Offline
0.59 posts per day
Medals: 0

Joined: Sep 25, 2007
Last Visit: 04 Sep 2008
Posts: 206
Points: 2655 

View user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger Reply with quote




Tinker
Reputation: 470.9
Local time: 6:19 PM

usa.gif

Status: Offline
0.10 posts per day
Medals: 0

Joined: Aug 21, 2007
Last Visit: 19 Jun 2008
Posts: 40
Points: 673 

View user's profileSend private message Reply with quote

Drak
Reputation: 473.4
Local time: 6:19 PM

usa.gif

Status: Offline
0.08 posts per day
Medals: 0

Joined: Apr 11, 2007
Last Visit: 03 Sep 2008
Posts: 42
Points: 1271 

View user's profileSend private messageVisit poster's websiteMSN Messenger Reply with quote

DreAdeDcoRpSE
Reputation: 646.2
votes: 4
Local time: 6:19 PM
Location: Back of your Mind
usa.gif

Status: Offline
1.08 posts per day
Medals: 1 (View more...)
Site Supporter (Amount: 1)
Forums Moderator
Forums Moderator
Joined: Sep 22, 2007
Last Visit: 06 Sep 2008
Posts: 380
Points: 6408 

Post Re: Play a single sound on entry to website Posted: Mon Jul 28, 2008 8:03 pm   

Shop Purchases:
Enemy Territory Theme (Aviator) for PHP Nuke

You can actually put it anywhere you like, just edit the

EMBED src="YOURSOUND.MP3"

to the location of the mp3 file. I am one that likes to keep things somewhat orginized, so you can create a folder on your site and name it " MP3 " and in side there put the mp3 sound file.

and if you do that it would look more like

EMBED src="MP3/YOURSOUND.MP3"

But again, like PeD said, and trunks agreed, it will get annoying. Just like the page transactions I discussed in another part of this site.
 

 
View user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger Reply with quote
Post new topic   Reply to topic  
   www.clan-themes.co.uk Forum Index » How To's


 
6 Replies / 715 Views
Page 1 of 1
All times are GMT
Display posts from previous:   
 
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 can download files in this forum