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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spry widget javascript change tab DW CS3

Status
Not open for further replies.

snowboardr

Programmer
Feb 22, 2002
1,401
PH
I am not sure what i would to do to have onclick javascript change tabs? Any suggestions?
 
figured it out!


Code:
<a href="#null" onclick="javascript:TabbedPanels1 = new Spry.Widget.TabbedPanels('TabbedPanels1', {defaultTab:3});">Open tab 3</a>

Code:
// Modify this line by adding these if statements
if (TabbedPanels1=="" || TabbedPanels1==null) {
 TabbedPanels1 = new Spry.Widget.TabbedPanels("TabbedPanels1", {defaultTab:0});
 }

Jason

[red]Army[/red] : [white]Combat Engineer[/white] : [blue]21B[/blue]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top