Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Help me solve this problem!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help me solve this problem!

 Post Reply Post Reply
Author
josk View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 10 June 2003
Location: Finland
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote josk Quote  Post ReplyReply Direct Link To This Post Topic: Help me solve this problem!
    Posted: 27 October 2003 at 6:30am

I try to make my table's cell changing backround color using this code: http://www.draac.com/tablecellcolor.html

Im adding this feature to my web wiz forum!

My cell change the color but I cant change every other mouseout color. How I add red source code to the black source code?

If (intForumColourNumber MOD 2 = 0 ) Then Response.Write(strTableEvenRowColour) Else Response.Write(strTableOddRowColour)

 
Response.Write(""" background=""" & strTableBgImage & """ width=""1%"" class=""text"" onMouseOver=""this.bgColor='#FFFFFF'"" onMouseOut=""this.bgColor='HOW I ADD HERE RED IF ELSE COLOR SOURCE CODE'"">")

Thanks for any help!

 

Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2003 at 8:56am

Response.Write(""" background=""" & strTableBgImage & """ width=""1%"" class=""text"" onMouseOver=""this.bgColor='#FFFFFF'"" onMouseOut=""

If (intForumColourNumber MOD 2 = 0 ) Then
this.bgColor='strTableEvenRowColour'"">")

else
this.bgColor='strTableOddRowColour'"">")

end if

 

i think

or is that wrong?



Edited by AnthraX
Back to Top
josk View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 10 June 2003
Location: Finland
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote josk Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2003 at 10:44am

Hmmm. I get this error!

Microsoft VBScript compilation error '800a0409'

Unterminated string constant

/forum/default_varit.asp, line 368

Response.Write(""" background=""" & strTableBgImage & """ width=""1%"" class=""text"" onMouseOver=""this.bgColor='#FFFFFF'""  onMouseOut=""
--------------------------------------------- ------------------------------------------------------------ ---------------------------------^ 
Back to Top
josk View Drop Down
Mod Builder Group
Mod Builder Group
Avatar

Joined: 10 June 2003
Location: Finland
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote josk Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2003 at 11:01am

Thanks Anthrax! I little bit work it out and get it work!

Response.Write(""" background=""" & strTableBgImage & """ width=""1%"" class=""text"" onMouseOver=""this.bgColor='#FFD4E5'"" onMouseOut=""")

If (intForumColourNumber MOD 2 = 0 ) Then

Response.Write("this.bgColor='" & strTableEvenRowColour & "'"">")

else

Response.Write("this.bgColor='" & strTableOddRowColour & "'"">")

end if

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.