Print Page | Close Window

Help me solve this problem!

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=6751
Printed Date: 31 March 2026 at 2:42pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Help me solve this problem!
Posted By: josk
Subject: Help me solve this problem!
Date 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 - 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!

 




Replies:
Posted By: Semikolon
Date 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?



Posted By: josk
Date 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=""
--------------------------------------------- ------------------------------------------------------------ ---------------------------------^ 


Posted By: josk
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net