Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rollover buttons?

Status
Not open for further replies.

mikemardon

Programmer
May 23, 2005
71
GB
Hi There

I have created a template with a navigation bar inside a web control. There is another web control which contains the main page content - this changes based on the selected button from the navigation.

It seems that the navigation buttons need to be server controls so I can make use of the vb script to call the other pages into the main panel but I can't get the rollover images to work if they are!

Also, I have another web control which contains the page header including a flash move, is there any way I can get the navigation to work so that it does not cause a postback and restart the movie?

Any help would be much appreciated

Mike
 
take a look at HtmlGeneric controls,

an e.g.:
<img src="ASDASDASD" runat="Server" id="MyImg" onmouseover="Rollver code" etc>

now u can declare the variable in ur CB(if u r using 1.x framework):
Dim WithEvents MyImg as HtmlGenericControl


now u can control it programatically using CB, please note however that u will not have any "methods" like click etc, u will have to improvise them.


>>Also, I have another web control which contains the page header including a flash move, is there any way I can get the navigation to work so that it does not cause a postback and restart the movie?

nope, thats impossible with the normal page strucutre, however if u really want it i would suggest the following:
--> AJAX
--> Use of IFRAMES



Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top