text bolds on mouse over the link

liunx

Guest
what is the tag to make a link bold when the mouse is over. or pictures change onn mouse over?<!--content--><style type="text/css"><br />
:link {color:#00ffff;font-weight:;text-decoration:none;}<br />
:active {color:#00ffff;font-weight:;text-decoration:none;}<br />
:visited {color:#00ffff;font-weight:;text-decoration:none;}<br />
:hover {color:#4682b4;font-weight:;text-decoration:bold;}<br />
</style><br />
place that in your head.<!--content-->what about pictures?<!--content-->and that just changes colors<!--content-->ok thats a java script more like this.<br />
<br />
just edit it I used it a long time ago on another site of mine<br />
<br />
<!--<br />
<br />
if (document.images) { // Active Images<br />
img1on = new Image();<br />
img1on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/main_u.gif";<br />
img1off = new Image();<br />
img1off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/main_o.gif";<br />
img2on = new Image();<br />
img2on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/games_u.png";<br />
img2off = new Image();<br />
img2off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/games_o.png";<br />
<br />
img3on = new Image();<br />
img3on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/programs_u.png";<br />
img3off = new Image();<br />
img3off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/programs_o.png";<br />
<br />
img4on = new Image();<br />
img4on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/apps_u.png";<br />
img4off = new Image();<br />
img4off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/apps_o.png";<br />
img5on = new Image();<br />
img5on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/pranks_u.png";<br />
img5off = new Image();<br />
img5off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/pranks_o.png";<br />
img6on = new Image();<br />
img6on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/funstuff_u.png";<br />
img6off = new Image();<br />
img6off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/funstuff_o.png";<br />
img7on = new Image();<br />
img7on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/support_u.png";<br />
img7off = new Image();<br />
img7off.src <br />
= "http://www.angelfire.com./ego2/bs/images/support_o.png";<br />
<br />
img8on = new Image();<br />
img8on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/screenshots_u.png";<br />
img8off = new Image();<br />
img8off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/screenshots_o.png";<br />
<br />
img9on = new Image();<br />
img9on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/projects_u.png";<br />
img9off = new Image();<br />
img9off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/projects_o.png";<br />
<br />
img10on = new Image();<br />
img10on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/peo_u.png";<br />
img10off = new Image();<br />
img10off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/peo_o.png";<br />
<br />
img11on = new Image();<br />
img11on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/curry_u.png";<br />
img11off = new Image();<br />
img11off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/curry_o.png";<br />
<br />
img12on = new Image();<br />
img12on.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com/ego2/bs/images/archives_u.png";<br />
img12off = new Image();<br />
img12off.src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/">http://www.webdeveloper.com/forum/archive/index.php/</a><!-- m -->"http://www.angelfire.com./ego2/bs/images/archives_o.png";<br />
<br />
}<br />
<br />
// Function to show image as mouse moves over the area<br />
function imgOn(imgName) {<br />
if (document.images) {<br />
document[imgName].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/eval(imgName">http://www.webdeveloper.com/forum/archi ... al(imgName</a><!-- m --> + "on.src");<br />
}<br />
}<br />
<br />
// Function to show image after mouse moves off the area<br />
function imgOff(imgName) {<br />
if (document.images) {<br />
document[imgName].src = <!-- m --><a class="postlink" href="http://www.webdeveloper.com/forum/archive/index.php/eval(imgName">http://www.webdeveloper.com/forum/archi ... al(imgName</a><!-- m --> + "off.src");<br />
}<br />
}<br />
<br />
// --> <br />
<br />
</script> that goes in your head<br />
<br />
<br />
this is n your body where the link is<br />
<br />
<br />
<a href onMouseOver="imgOn('img4')" onMouseOut="imgOff('img4')"><img<br />
NAME="img4" SRC=http://www.webdeveloper.com/forum/archive/index.php/"http://www.angelfire.com/ego2/bs/images/apps_o.png" width="119" height="25" ALT="applications"></a> </td><br />
</tr><!--content--><!--For links--><br />
<style type="text/css"><br />
<!--<br />
A {color:blue;}<br />
A:visited {color: purple;}<br />
A:active {color:red;}<br />
A:hover {color:red;}<br />
--><br />
</style><br />
<br />
<!--For image changes on mouse over--><br />
<img src=http://www.webdeveloper.com/forum/archive/index.php/"off.gif" onmouseover="this.src='on.gif';" onmouseout="this.src='http://www.webdeveloper.com/forum/archive/index.php/off.gif';"><br />
<br />
<br />
Jona<!--content--><style type="text/css"> <br />
:link {color:#00ffff;font-weight:;text-decoration:none;} <br />
:active {color:#00ffff;font-weight:;text-decoration:none;} <br />
:visited {color:#00ffff;font-weight:;text-decoration:none;} <br />
:hover {color:#4682b4;font-weight:bold;text-decoration:none;}<br />
</style> <br />
place that in your head. This will make it bold sorry I made a bobo the first time.<!--content-->still no bold<!--content-->Wildwobby, post a link to your page. Apparently you have other CSS code on your document that is overriding what we are giving you.<br />
<br />
Jona<!--content-->yes my code is tried and tested and will work on any browser too. That code is standard.<!--content-->
 
Back
Top