Hide Show animate with Jquery: Difference between revisions
Jump to navigation
Jump to search
Kaplanerkan (talk | contribs) (Created page with " <pre> Sub Main() Dim sInhalt HTMLview1.innerHTML="" sInhalt = "" sInhalt +="<table width='300px'>" sInhalt +="</tr><td> <p id='eins'>Bestellen</p></td></tr>" ...") |
Kaplanerkan (talk | contribs) No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<pre> | <pre> | ||
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() | Sub Main() | ||
Line 7: | Line 13: | ||
sInhalt = "" | sInhalt = "" | ||
sInhalt +="<table width='300px'>" | sInhalt +="<table width='300px'>" | ||
sInhalt +="<tr><td> <p id='eins'> Zurück </p></td></tr>" | |||
sInhalt +="<tr><td><p id='zwei'>Hauptmenu | sInhalt +="<tr><td> <p id='zwei'> Hauptmenu </p></td></tr>" | ||
sInhalt +="< | sInhalt +="<tr><td> <p id='drei'> Bestellen </p></td></tr>" | ||
sInhalt +="</table>" | sInhalt +="</table>" | ||
HTMLview1.innerHTML = sInhalt | HTMLview1.innerHTML = sInhalt | ||
Line 31: | Line 37: | ||
$("#drei").animate({height:"toggle",opacity:"toggle"},"slow"); | $("#drei").animate({height:"toggle",opacity:"toggle"},"slow"); | ||
'$("#eins").fadeToggle( 400 ); | |||
'$("#eins").slideToggle( 1000 ); | |||
End Function | End Function |
Latest revision as of 23:23, 20 September 2013
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 |