Welcome, Guest. Please Login or Register.
November 23, 2024, 07:42:14 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Graphics and Templates  |  onFocus onBlur ?! « previous next »
Pages: [1] Reply Ignore Print
Author Topic: onFocus onBlur ?!  (Read 3123 times)
PHPlugin
Sr. Member
****
Posts: 465


WWW
onFocus onBlur ?!
« on: December 24, 2001, 05:06:02 PM »
Reply with quote

I tried to add this code in the CSS style in the tamplate to the input fields:

onFocus="this.style.backgroundColor='red' "; onBlur="this.style.backgroundColor='blue' ";
But it doesnt work like this!

It would be able to add this code in every input and text field manually, but that would be a lot of work!

Anyone a better idea?

THX!
Logged
Dave Smulders
YaBB SE Developer
YaBB God
*****
Posts: 608


WWW
Re:onFocus onBlur ?!
« Reply #1 on: December 24, 2001, 05:30:45 PM »
Reply with quote

Make a javascript that scans for the input fields and adds the events to them.
AFAIK, there's no way to do this via css, other than making a htc, which will only work on IE unfortunatly. So you're stuck with the javascript I guess.
Logged

PHPlugin
Sr. Member
****
Posts: 465


WWW
Re:onFocus onBlur ?!
« Reply #2 on: December 24, 2001, 06:00:36 PM »
Reply with quote

I dont know java script  :(
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Graphics and Templates  |  onFocus onBlur ?! « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.012 seconds with 21 queries.