English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi,

I would like to put some music on my website but also provide visitors with the possibility to toggle it on/off. I don't want to use a button but simple the words ON | MUSIC | OFF (as a button doesn't do the design any good). So (the way I fugure it out) both ON and OFF should be working on thier own? Anyway, I've searched everywhere but I only find HTML codes for adding buttons but not text. Could someone please help me?

Thanks in advance! :-)

P.S. I am really new at this so could you please keep it as simple as possible? Thanks again :-)

2006-10-28 07:40:08 · 2 answers · asked by gingerlilly 1 in Computers & Internet Programming & Design

2 answers

You can create hyperlinks and add an onclick attribute to your hyperlink. In the onclick attribute, you call your javascript to turn off music. So, your hyperlink would look something like this,

ON

If you have any other questions, please feel free to contact me.

2006-10-30 03:51:20 · answer #1 · answered by knitting guy 6 · 3 0

except the image is interior the comparable itemizing via fact the html record, you would be able to desire to specify a path to the image. case in point, in case your html record is on your webroot, and you place your photos in a subdirectory of your webroot stated as 'photos', your html might appear like this: To middle the image, use css - img { margin: 0 motor vehicle; reveal: block;} or

2016-10-03 01:33:50 · answer #2 · answered by lashbrook 4 · 0 0

fedest.com, questions and answers