css background music....

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
gavinbsocom
Forum Commoner
Posts: 71
Joined: Tue Sep 30, 2003 9:51 pm

css background music....

Post by gavinbsocom »

here is what im trying to accomplish....I want to put a link on a page that goes back to the previous....But When you hover over that back link I want it to say....Ill be back...I have the audio clip from terminator that says it....I just can't get it to do it in my stylesheets....I searched the internet..yet no one has an answer to this yet....Thankyou.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

i dont believe this is possible within CSS, as from what i am aware, there is no audio controller, Javascript can do it though
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

CSS has no audio controls, malcolm is right. you'll have to use the DOM or ActiveX to do it.

also consider that me or anybody remotely like me will close your page the second I hear that sound play more than once, and never come back.
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

unfortunately unipus statement is correct
also consider that me or anybody remotely like me will close your page the second I hear that sound play more than once, and never come back.
i once built a site that once you entered said hello, this was @ the beginning of my days with html, believe me once you become experienced in web development you realise hpow tacky these things really are

if you are really adament on including this you should create it in flash, you therefore are able to add controls, pause volume etc etc, this way the 'user' has a get out clause in that he can turn off the music if he so desires

just my 2 cents, but i think my opinion will be echo'd through out the board
gavinbsocom
Forum Commoner
Posts: 71
Joined: Tue Sep 30, 2003 9:51 pm

Post by gavinbsocom »

yah i agree its tacky....and the only reason im asking is cause im in this html class in school....which is complete and utter b.s. and i know as much as the teacher knows and then some....but i wasn't sure about this...and he was so excited when he thought of this idea...so i figured i give it a whirl...I agree with all you guys though....so thanks any who...
User avatar
uberpolak
Forum Contributor
Posts: 261
Joined: Thu Jan 02, 2003 10:37 am
Location: Next to the bar

Post by uberpolak »

Lol, so why don't you teach the class? I did that in high school several years ago for HTML, and worked out a deal with the teacher where I got 100% in the class for doing it.
gavinbsocom
Forum Commoner
Posts: 71
Joined: Tue Sep 30, 2003 9:51 pm

Post by gavinbsocom »

in that case....if i used javascript to do it....where would i start...anyone got some examples....Can i do it in php??? well an example in java would be nice..Thankyou.
Post Reply