Using jQuery animate() function to do a smooth scrolling:
I have also created a div as follow:
Scroll to here
You need something to run your script. Create a button like this:
<input type=”button” onclick=”scollWin();” value=”Scroll up” />
The jQuery Code will be like this:
Here is something to try:
now jQuery window scrolling is done with animation.
Every browser has different CSS properties for less-used actions like: transparency or opacity.
It was something weird to do transparency on your web page because there are lot of different web browsers. To make that easy, I have collected information and generated a CSS class that will work on most of the browsers.
See the Code below:
filter:alpha(opacity=75); is used for Internet Explorer.
-moz-opacity:0.75; is used for Mozilla, Firefox, Netscape browsers (old versions).
-khtml-opacity: 0.75; is used for old versions of Safari.
opacity: 0.75; is used as a standard CSS property for browsers like Firefox 2+ and Safari 3+ and Opera
The better way to load XML document on all browsers is to use AJAX technique.
So, How to load it then?