Re: changing div styles in image maps
- From: "prash.marne@xxxxxxxxx" <prash.marne@xxxxxxxxx>
- Date: 9 Mar 2007 05:27:39 -0800
On Feb 28, 11:15 pm, ASM <stephanemoriaux.NoAd...@xxxxxxxxxxxxxxxxxx>
wrote:
prash.ma...@xxxxxxxxx a écrit :
hey tahnks for your reply ,
Please left some trace of post you're answering.
u guys are relly helpful for beginers like me...
but the thing dosent work in my case i have tried a simple one ...
<html>
<head>
<script type="text/javascript">
/* *** Ooops ! little error ! **** */
function boldIt(what) {
what = document.getElementById(what).style;
what.fontWeight = what.fontWeight==''? 'bold' : '';
}
</script>
</head>
<body>
<img scr="wrld_map.jpg" type="image/jpg" usemap="#wrldMap">
<map name="wrldMap"
<area href="#" shape="poly" coords="........"
with real coords it would be better
onmouseover="boldIt('div1');" onmouseout="boldIt('div1');">
</map>
<div id="div1">Europe</div>
</body>
</html>
do i need to add some more stuff ....?? or i am getting wrong
somwhere ...??
Not seems so.
And if you try the "idea"
correct it same way as above (two '=' insteed one '=' in condition)
function higtLight(what) {
var D = document.getElementById('text_'+what);
var L = document.getElementById('legend_'+what);
D.className = D.className==''? 'highlight' : '';
L.className = L.className==''? 'highlight' : '';
}
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
cool the problem is solved....
thanks once again.....
.
- Prev by Date: Re: document.getElementById issue in Firefox
- Next by Date: Re: changing title & removing status bar from a pop up window
- Previous by thread: How to create a rotating slide effect in javascript
- Next by thread: Re: changing title & removing status bar from a pop up window
- Index(es):
Relevant Pages
|