Forum Moderators: open

Message Too Old, No Replies

change image depending on the link selected

         

manjumurthy

5:35 am on Jun 28, 2002 (gmt 0)



I have the foll. requirement
I'm displaying certain results from the database in the form of html table using asp. I have 2 arrows(gifs) in href which allows u to sort the table accordingly. On selecting one order I want to change the color of gif to indicate the sorted order. Can anyone help me with this????

DrDoc

6:48 am on Jun 28, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, I don't know much about ASP, but what you have to do is create a variable containing the name of the gif, and depending on sort order you set the variable to contain one of the two names. Then simply use this information to print out an IMG tag to the browser ..