Ironworks Gaming Forum

Ironworks Gaming Forum (http://www.ironworksforum.com/forum/index.php)
-   General Conversation Archives (11/2000 - 01/2005) (http://www.ironworksforum.com/forum/forumdisplay.php?f=28)
-   -   Some HTML help, please (http://www.ironworksforum.com/forum/showthread.php?t=82890)

Sir Krustin 11-24-2002 04:51 PM

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...

adam warlock 11-24-2002 05:32 PM

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 ]

/)eathKiller 11-24-2002 08:11 PM

*imagines what IWs would be like with people posting wav files*

*shudder*

adam warlock 11-24-2002 08:46 PM

*shudders* yeah terrible indeed

Djinn Raffo 11-24-2002 09:05 PM

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 &lt;head&gt;&lt;/head&gt; tags...
&lt;script language=&quot;JavaScript&quot;&gt;
function change(url){
document.location.replace(url);
}
&lt;/script&gt;

&lt;script type=&quot;text/javascript&quot;&gt;

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;

}
&lt;/script&gt;</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 ]

Sir Krustin 11-24-2002 09:40 PM

Quote:

Originally posted by adam warlock:
it depends how you want the sound played. as a background sound? (shudders) or a button sound?
Exactly, an event driven sound. Or maybe a blurb as a page is opened.

Quote:

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

ahh, I remember now. thanks!

Raffo: That's a good one, I'll have to file it.

[ 11-24-2002, 09:41 PM: Message edited by: Sir Krustin ]

LennonCook 11-25-2002 02:15 AM

<font color="lightblue">For a background sound, use: </font>
</font><blockquote>code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">&lt;!--
&lt;embed src=&quot;musicURL&quot; loop=&quot;value&quot; hidden=&quot;true&quot;&gt;
&lt;noembed&gt;
&lt;bgsound src=&quot;musicURL&quot; loop=&quot;TRUE/FALSE&quot;&gt;
&lt;/noembed&gt;
--&gt;</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 ]

Sir Krustin 11-25-2002 06:31 PM

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)?

LordKathen 11-25-2002 11:39 PM

Whats with the porn?

LennonCook 11-26-2002 01:43 AM

Quote:

Originally posted by Sir Krustin:
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)?

<font color="lightblue">Yes, 2 different ways, it`s best to use both for maximum browser support [img]smile.gif[/img]
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>

Sir Krustin 11-26-2002 07:35 AM

Quote:

Originally posted by LordKathen:
Whats with the porn?
I have to ask this.

*what* porn?

andrewas 11-26-2002 07:56 AM

Quote:

Originally posted by Sir Krustin:
</font><blockquote>quote:</font><hr />Originally posted by LordKathen:
Whats with the porn?

I have to ask this.

*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.

Grojlach 11-26-2002 08:44 AM

Quote:

Originally posted by andrewas:
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.
*glps*
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