![]() |
1) What's the html code play a sound, like a .wav file (eg, a beep)
2) (Used to know this one) How do you redirect a page? Thanks for any help... |
it depends how you want the sound played. as a background sound? (shudders) or a button sound?
2)it involves one of the special META tags. Adjust the time (In seconds) and URL to fit your needs: meta http-equiv="refresh" content="5; url=http://www.spankme.com" edited to get the code to show [ 11-24-2002, 05:34 PM: Message edited by: adam warlock ] |
*imagines what IWs would be like with people posting wav files*
*shudder* |
*shudders* yeah terrible indeed
|
There are many ways to redirect a page.
Here is a good one: </font><blockquote>code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">put this in between your <head></head> tags... <script language="JavaScript"> function change(url){ document.location.replace(url); } </script> <script type="text/javascript"> switch(screen.width) //this would be used to detect screen resolution but without any //other 'cases' it doesnt matter what the res is.. you //get redirected..originally this script is used for that.. redirecting to //an appropriate page based on the users screen resolution... { default : change('the_weburl_you_are_re-dircecting_to_goes_here.htm'); break; } </script></pre>[/QUOTE]This redirects without any intravention at all.. If you click on a webpage with this code in it.. then you go to the new url.. no exceptions.. [ 11-24-2002, 09:06 PM: Message edited by: Djinn Raffo ] |
Quote:
Quote:
Raffo: That's a good one, I'll have to file it. [ 11-24-2002, 09:41 PM: Message edited by: Sir Krustin ] |
<font color="lightblue">For a background sound, use: </font>
</font><blockquote>code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"><!-- <embed src="musicURL" loop="value" hidden="true"> <noembed> <bgsound src="musicURL" loop="TRUE/FALSE"> </noembed> --></pre>[/QUOTE]<font color="lightblue">value can be any positive integer, and it will loop that number of times. Use "-1" for it to loop infinately. TRUE/FALSE can be either true or false. True means it will loop, false means it will play once only. [img]smile.gif[/img] </font> [ 11-25-2002, 02:18 AM: Message edited by: LennonCook ] |
Thanks LC. That looks like two different ways to do this, or am I misinterpreting what you wrote...?
Is it possible to use this code in ana event (eg, a mouseover or a button click)? |
Whats with the porn?
|
Quote:
As for using sound for an event, try www.jsmadeeasy.com - to do *anything* on mouseover, you need Jscipt, so I`d recomend you go easy on it a bit, for browser support. [img]smile.gif[/img] </font> |
Quote:
*what* porn? |
Quote:
*what* porn?</font>[/QUOTE]I think Kathen is referring to the URL in adam warlocks example - I am at work so Im not going there to check. It dosent look like a URL to a family site though. |
Quote:
Followed the url, and it most definitely isn't a family site, no... Just ignore it. Let's hope adam warlock will edit it out soon enough, cause not only is it done in very poor taste, it isn't exactly allowed to the Rules and Regulations either, I think. *Very* weird example. [img]graemlins/uhoh1.gif[/img] [ 11-26-2002, 08:47 AM: Message edited by: Grojlach ] |
All times are GMT -4. The time now is 11:22 AM. |
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved