RE: Down to One Question: Javascript (was Two Questions: One Jav ascript, One Tables)

by Klaas De Waele <klaas(at)gracegraphics.be>

 Date:  Tue, 12 Feb 2002 09:36:30 +0100
 To:  "'Ben Ocean'" <lists(at)TheWebsons.com>,
"'Peter-Paul Koch'" <gassinaumasis(at)hotmail.com>
 Cc:  "'hwg-techniques(at)hwg.org'" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
onmouseover="this.size='7'; this.color='magenta';"
onmouseout="this.size='7'; this.color='black';"


Quick analysis: onMousover already defines javascript as it is a javascript
action, so you can skip that part.
And eh... don't know if those ;'s are really required, but they're missing
in your code.


- Kayjey -
www.fiatcoupe.net


-----Oorspronkelijk bericht-----
Van: owner-hwg-techniques(at)hwg.org
[mailto:owner-hwg-techniques(at)hwg.org]Namens Ben Ocean
Verzonden: maandag 11 februari 2002 18:46
Aan: Peter-Paul Koch
CC: hwg-techniques(at)hwg.org
Onderwerp: Down to One Question: Javascript (was Two Questions: One
Javascript, One Tables)


At 10:05 AM 2/11/02 +0000, you wrote:
>I have the following code on a page:
>>
>>      </td><td bgcolor=black onMouseOver="javascript:bgColor='white'"
>>onMouseOut="javascript:bgColor='black'" width=<dtml-var
>>"sizeCalc(92,size(_.None,_))"> height=<dtml-var 
>>"sizeCalc(17,size(_.None,_))">>
>>       <font style="font: <dtml-var "sizeCalc(13,size(_.None,_))"> antique
>>olive, arial" color="white" onMouseOver="javascript:color='black'"
>>onMouseOut="javascript:color='white'">Home</font>
>>
>>Ignore the dtml stuff. On the second line (the <font> tag) my mouse over 
>>and out aren't working. Why?
>
>this.color='white'

Nope. That didn't work either.

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.