Topic: Make the image's border light up... 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..." rel="nofollow" >Topic: Make the image&#039;s border light up...\

 
Author Thread
sideout
Bipolar (III) Inmate

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

IP logged posted posted 04-16-2004 01:14 Edit Quote

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

IP logged posted posted 04-16-2004 01:38 Edit Quote

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

IP logged posted posted 04-16-2004 05:47 Edit Quote

The correct JavaScript syntax is

this.style.borderColor='#FFFFFF';


 

Skaarjj
Maniac (V) Mad Scientist

From: :morF
Insane since: May 2000

IP logged posted posted 04-16-2004 17:03 Edit Quote

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

IP logged posted posted 04-16-2004 17:28 Edit Quote

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

IP logged posted posted 04-16-2004 18:07 Edit Quote

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