|
|
|
|
![]() ![]() |
Nov 16 2004, 03:35 PM
Post
#1
|
|
|
Member [Level 1] ![]() ![]() ![]() ![]() Group: Members Posts: 56 Joined: 14-October 04 Member No.: 1,744 |
If you know how to do these then pls help me out:
1 - Putting songs for the site to play, like if you go to A section you hear X song, you go to B section you hear Y song, and i don't mean by clicking a link, i want it to automaticly play the song. 2 - Putting help on a hover button, like a smell bubble telling you what is in that link. 3 - Adding smilies and other-non pictures stuff. |
|
|
|
Nov 17 2004, 08:33 AM
Post
#2
|
|
|
Newbie ![]() Group: Members Posts: 2 Joined: 17-November 04 Member No.: 2,320 |
QUOTE(Lyubomyr @ Nov 16 2004, 10:35 PM) If you know how to do these then pls help me out: 1 - Putting songs for the site to play, like if you go to A section you hear X song, you go to B section you hear Y song, and i don't mean by clicking a link, i want it to automaticly play the song. 2 - Putting help on a hover button, like a smell bubble telling you what is in that link. 3 - Adding smilies and other-non pictures stuff. In order to play background music on a website you need the use the code just below the <body bgcolor line adding (<bgsound src="songname.mp3/wav">) use that code after the bgcolor code and different one each page to play a new song when a new page is opened |
|
|
|
Nov 17 2004, 09:55 AM
Post
#3
|
|
|
King of My WOrld ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 482 Joined: 11-October 04 Member No.: 1,665 |
QUOTE(Lyubomyr @ Nov 16 2004, 03:35 PM) 2 - Putting help on a hover button, like a smell bubble telling you what is in that link. i think what u mean is using alt tag just like this : <img src="picture.gif" alt="the text u will see when the cursor points to the picture"> QUOTE 3 - Adding smilies and other-non pictures stuff. smiles .. u mean those smilies like this this is a picture and u save the files and put the tag inside ur html: <img src="smilies.gif"> what do u mean by other non-pictures stuff ?? word. just type any words will do .... wat r u asking for? |
|
|
|
Nov 19 2004, 12:22 PM
Post
#4
|
|
|
Advanced Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 117 Joined: 4-August 04 From: England, UK Member No.: 654 |
Note that the alt tag only works for images. If you want a tooltip over some text instead, enclose it in the acronym tag, as follows:
CODE These are some extremely small <acronym title="buzzword, doesn't really mean much">widgets</acronym>. This will enable an explanation when the word "widgets" is hovered over. If you want to put a similar explanation for a text LINK (instead of just a non hyperlink) use the following: CODE Visit my site at <a href="http://www.web-site.tk" title="this is a great site">web-site.tk</a>. So basically, adding "title" to many elements will produce a tooltip, or an explanation of the link which will appear when the item is hovered over. Hope it helped! |
|
|
|
Nov 19 2004, 01:59 PM
Post
#5
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 45 Joined: 19-November 04 Member No.: 2,337 |
I have one advice for you - if you use sound in your website make sure that you provide visitors with a way to turn it off, since many people are annoyed bysites with music, especially people who surf the web at work - like me!
|
|
|
|
Nov 23 2004, 01:08 PM
Post
#6
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 45 Joined: 19-November 04 Member No.: 2,337 |
...As for the hover functionality, what you have to do is dynamically change the src of the image onMouseOver and then restore it onMouseOut.
E.g. <img src="whatever..." id="myImage" onMouseOver="Javascript:hover('in')" onMouseOut="Javascript:hover('out')"> ... ... ... <script> function hover(String s){ if (s == "in"){ document.myImage.src="activeImage..."; } else if (s == "out"){ document.myImage.src="normalImage..."; } } </script> |
|
|
|
Nov 24 2004, 10:20 AM
Post
#7
|
|
|
Newbie ![]() Group: Members Posts: 8 Joined: 12-November 04 From: Canada Member No.: 2,251 |
the easy way i do it for link descriptions is by using this code:
<a href="url here" title="description of link">blah blah</a> |
|
|
|
Nov 24 2004, 04:55 PM
Post
#8
|
|
|
Newbie [Level 2] ![]() ![]() Group: Members Posts: 37 Joined: 24-November 04 Member No.: 2,414 |
QUOTE(rovertos @ Nov 19 2004, 02:59 PM) I have one advice for you - if you use sound in your website make sure that you provide visitors with a way to turn it off, since many people are annoyed bysites with music, especially people who surf the web at work - like me! Yeah, the simplest way to do this is to use an iframe hidden somewhere and a page in that window with the music playing...simply make it so when you click a specific link, it opens in the iframe and opens the file "about:blank"...well, it's how I'd do it anyway (if I dared actually play music in a web page...it's so n00bish :-)) |
|
|
|
Nov 29 2004, 09:19 AM
Post
#9
|
|
|
Newbie [Level 3] ![]() ![]() ![]() Group: Members Posts: 45 Joined: 19-November 04 Member No.: 2,337 |
[quote=SmUX,Nov 24 2004, 07:55 PM]Yeah, the simplest way to do this is to use an iframe hidden somewhere and a page in that window with the music playing...simply make it so when you click a specific link, it opens in the iframe and opens the file "about:blank"...well, it's how I'd do it anyway (if I dared actually play music in a web page...it's so n00bish :-))
[/quote] Be careful with those iframes... I know Netscape didn't support them and I think Firefox doesn't support them now. <iframe> is IE proprietary, you'd better stick with the standards... |
|
|
|