Hide Show animate with Jquery

From NSB App Studio
Revision as of 23:23, 20 September 2013 by Kaplanerkan (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Rem jQuery can also show or hide content by means of animation effects. 
Rem You can tell .show() and .hide() to use animation in a couple of ways. 
Rem One is to pass in an argument of 'slow', 'normal', or 'fast'

Rem If you prefer more direct control over the duration of the animation effect, 
Rem you can pass the desired duration in milliseconds to .show() and .hide():

Sub Main()
  Dim sInhalt
  HTMLview1.innerHTML=""
  sInhalt =  ""
  sInhalt +=""
  sInhalt +=""
  sInhalt +=""
  sInhalt +=""
  sInhalt +="

Zurück

Hauptmenu

Bestellen

" HTMLview1.innerHTML = sInhalt HTMLview1.refresh() End Sub Function Button5_onclick() '$("#eins").toggle( "slow" ); $("#eins").hide("slow"); $("#zwei").hide("slow" ); $("#Button7").hide("slow" ); $("#Button8").hide("fast" ); End Function Function Button6_onclick() $("#eins").show("slow"); $("#zwei").show("slow"); $("#Button7").show("slow"); $("#Button8").show("slow"); $("#drei").animate({height:"toggle",opacity:"toggle"},"slow"); '$("#eins").fadeToggle( 400 ); '$("#eins").slideToggle( 1000 ); End Function