Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / July 2008



Tip: Looking for answers? Try searching our database.

expression

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jean Pierre Daviau - 14 Jul 2008 16:50 GMT
Hi,

How can I write this correctly?

a:hover {
             expression(selfTimer());
             }

<a  style=" expression(selfTimer()) "     href= .....></a>

Thanks

Signature

Jean Pierre Daviau

--
windows XP professionnel 2002 SP2
asus p4 s533/333/133

http://jeanpierredaviau.com

Aimons  les étrangers;  l'on vit avec eux les trois quart de notre vie.

John Hosking - 14 Jul 2008 20:35 GMT
> Hi,
>
> How can I write this correctly?

Correct according to CSS2.1? Neither selfTimer nor expression, nor
JavaScript are defined in any of the CSS specs I'm familiar with. I
reckon that makes your post OT here.

> a:hover {
>               expression(selfTimer());
>               }
>
> <a  style=" expression(selfTimer()) "     href= .....></a>

I *think* (i.e., I'm guessing wildly) that you want something like

a:hover { property: expression(selfTimer()); }

where "property" refers to something CSS-ish that can be determined by
whatever selfTimer does. An example of a property would be font-size or
background-color or margin-top, none of which sound like timer-friendly
properties. Maybe you're trying to do something aurally or with CSS3?

Anyway, even if I got the syntax right, I wouldn't expect whatever it is
to work in non-IE browsers or where scripting is not turned on. I take
this to be IE-proprietary junk.
http://www.codehouse.com/javascript/tips/css_expression/

Maybe you should ask in c.l.javascript or some Microsoft or IE group.

Signature

John
Pondering the value of the UIP: http://improve-usenet.org/

Jean Pierre Daviau - 15 Jul 2008 00:18 GMT
In this world everything has a tendency to split his way apart ;-)

I did not check if it was a  proprietary  CSS thing. But I learned
JavaScript and I was foolishly happy to see they could be joined.

Thanks again

>> Hi,
>>
[quoted text clipped - 25 lines]
>
> Maybe you should ask in c.l.javascript or some Microsoft or IE group.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.