Topic: Make the image's border light up... (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=21376" title="Pages that link to Topic: Make the image&amp;#039;s border light up... (Page 1 of 1)" rel="nofollow" >Topic: Make the image&#039;s border light up... <span class="small">(Page 1 of 1)</span>\

 
sideout
Bipolar (III) Inmate

From: Hull, Que, Can
Insane since: Feb 2004

posted posted 04-16-2004 01:14

What I'm trying to do is the following:


pseudo code:
________________________________________________________________________
onMouseover = "this.style='border-color:ffffff'"
________________________________________________________________________

This may not be correct syntax however I'm sure you can understand what I'm goin for,

Any help is much appreciated,

sideout

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 04-16-2004 01:38

sideout: Since you post your question in the XML - XSL - ... category I suppose you try to do that in XSL. So you should escape the special characters or put the strings/code in a CDATA

code:
onMouseover = &quot;this.style='border-color:ffffff'&quot;

or

code:
<![CDATA[
onMouseover = "this.style='border-color:ffffff'"
]]>

Hope that helps,

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 04-16-2004 05:47

The correct JavaScript syntax is

this.style.borderColor='#FFFFFF';


 

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 04-16-2004 17:03

uhh...now, I'm probably going to jam my foot liberally in my mouth, but why not have

code:
a#image:hover {border: 2px solid #FFFFFF;}



Justice 4 Pat Richard

krets
Paranoid (IV) Mad Scientist

From: Right-dead center
Insane since: Nov 2002

posted posted 04-16-2004 17:28

Well that probably won't work but

code:
a#img:hover {border: 2px solid #ffffff;}



might...

:::11oh1:::

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

posted posted 04-16-2004 18:07

I was using image as a ID declaration, not as a context

Justice 4 Pat Richard



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu