Re: changing div styles in image maps



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.....

.



Relevant Pages

  • Re: newbie: css in every page in app
    ... Then I needed to add CSS links to each "head" ... within the html tags. ... code your child to add controls to these containers. ... you get control over both the html head and body. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Languages of Africa
    ... Without a trace, ... Taxonomy and Genetic Relationships Between Indo-Pacific Languages ... he has managed to resolve the consonantal correspondences of the ... Halmaheran, South Bird’s Head, West Bomberai, Nimboran and Upper Tami ...
    (sci.lang)
  • Re: Converting Perl Web Report to Python
    ... by allowing the user to pass in an SQL query parameter to the sql ...
    (comp.lang.python)
  • Re: Pulse Head
    ... (Thanks a lot, Tek.) ... A fast logic gate or LVDS receiver, ... What's with the html? ...
    (sci.electronics.design)
  • Re: How to center the web page in the screen?
    ... A valid html document is structured like this: ... or a tag pair which I won't go into here. ... suggest further reading elsewhere to see what is allowed within the <head> ... The fix to center pages using publisher 2003 and 2007 ...
    (microsoft.public.publisher.webdesign)