Staredit Network

Staredit Network -> Computers and Technical -> Quick HTML Question regarding Embedding.
Report, edit, etc...Posted by Kow on 2006-03-11 at 11:28:55
I have a song that I have embedded. It's in a signature on a different forum. I want it to auto play, but only one of them. HTML is enabled, how do I get only one to play per page?

So basically, how do you get only one instance of a media file to play at once per page?
Report, edit, etc...Posted by Centreri on 2006-03-11 at 12:50:17
<embed src="something.wav" loop="false" hidden="true" />?
Just turn off loop, if I understand question correctly.
Report, edit, etc...Posted by Doodle77(MM) on 2006-03-11 at 13:12:59
CODE
<script>
var signo;
signo++;
if (signo == 1) {
document.getElementByTagName('embed')[0].autoplay = true;
}
</script>

That would only work if no one else had an embed.
Report, edit, etc...Posted by Kow on 2006-03-11 at 14:37:37
I don't know if you understand me, so I'll reiterate hopefully more clearly

I have a forum in which my siggy has a music that autoplays. I will have multiple posts per page, but only want one of the media players in the page to play.

And doodle: could you fill that in with this file: http://www.fileupyours.com/files/18454/02%...20You%20Say.m4a ? I don't know where to put it.
Report, edit, etc...Posted by Centreri on 2006-03-11 at 17:28:42
Oh.. That's more complicated. I can't find it from the top of my head, but search for something that 'if the file is accessed more then once, play only one of those' and 'if file is accessed once, play only one of those' on google or something. Is Javascript enabled when HTML gets enabled? If not, then I doubt it's possible.
Report, edit, etc...Posted by Kow on 2006-03-11 at 22:01:23
I honestly don't know if javascript is enabled, and I tried googling just now. None of it pertains to my exact question, but regarding different files.
Report, edit, etc...Posted by Centreri on 2006-03-13 at 15:29:14
I really doubt you can do it with anything except browser-side scripting, or maybe flash.
Ask administrator or experiment.
Report, edit, etc...Posted by Kow on 2006-03-17 at 10:07:30
I am the admin >.>

I'll just find a spot on the page to have it >.>
Report, edit, etc...Posted by @:@ on 2006-03-17 at 13:15:40
Ewe, sound in a sig, kills poor 56kers, and its annoying, IMO
Report, edit, etc...Posted by O)FaRTy1billion on 2006-03-17 at 23:00:18
CODE
<img src="javascript:var signo;signo++;if (signo == 1) {document.getElementByTagName('embed')[0].autoplay = true;}" width=0>

xD IE Only, I believe.

Edit: Just put that with the <embed> tag.
Report, edit, etc...Posted by Kow on 2006-03-22 at 16:03:39
Noone who visits the board has 56k, cept maybe Nukie if he goes every so often.
Report, edit, etc...Posted by Kellodood on 2006-03-25 at 03:07:11
QUOTE(Centreri @ Mar 11 2006, 03:28 PM)
Oh.. That's more complicated. I can't find it from the top of my head, but search for something that 'if the file is accessed more then once, play only one of those' and 'if file is accessed once, play only one of those' on google or something. Is Javascript enabled when HTML gets enabled? If not, then I doubt it's possible.
[right][snapback]443578[/snapback][/right]


JavaScript is part of HTML, so it should be enabled if HTML is.

QUOTE(O)FaRTy1billion @ Mar 17 2006, 08:59 PM)
CODE
<img src="javascript:var signo;signo++;if (signo == 1) {document.getElementByTagName('embed')[0].autoplay = true;}" width=0>

xD IE Only, I believe.

Edit: Just put that with the <embed> tag.
[right][snapback]447894[/snapback][/right]


Listen to Farty. He knows all tongue.gif
Report, edit, etc...Posted by Mp)7-7 on 2006-03-25 at 08:35:13
See I want to learn stuff like this


Because I want to make a website like this one SEN

but, ovcoarse different
Report, edit, etc...Posted by Kellodood on 2006-03-25 at 11:43:43
SeN is the following:

PHP, MySQL, HTML, and maybe a tid of JavaScript.

PHP is Server-Side, along with MySQL. (The server processes everything)
HTML and JavaScript are Client-Side. (The user processes everything)
Next Page (1)