JavaScript tutorials

Webmaster Tools

Webmaster Tools is a suite of 17 wizards to make your JavaScript creation easier. Create pop-ups,pop-unders,mail-to tags,doorway pages,rollover links,and more. All of the most frequently asked-for wizards are here. Just enter the variables and then copy and paste the code into your HTML or text editor.

 

Download

http://www.filesonic.com/file/1695978971/webmastertools_exe.exe

Free JavaScript Editor

Free JavaScript Editor is advanced JavaScript Editor,Validator and Debugger for beginners and professionals. AJAX developers can easily use the program as Free Ajax Editor. Free JavaScript Editor is used for professionally editing JavaScript code and creating animations and other special effects for Web pages using DHTML,CSS and JavaScript.

 

Download

freejse.zip

Scroll To Top

// javascript<br>
$(function(){<br>
&nbsp;$window = $(window);<br>
&nbsp;$link = $(“#scrollToTop”);// your link to show when user
scrolls down<br>
$link.click(function(){<br>
&nbsp;$(“html,body”).animate({scrollTop:0 },“slow”);// this is
the gist of the script,scroll to top (scrollTop:0)<br>
});<br>
<br>
$window.scroll(function(){<br>
&nbsp;&nbsp;if ($window.scrollTop() &lt;= 0){<br>
&nbsp;&nbsp;&nbsp;&nbsp;$link.fadeOut(“fast”);<br>
&nbsp;&nbsp;} else{<br>
&nbsp;&nbsp;&nbsp;&nbsp;$link.fadeIn(“fast”);<br>
&nbsp;&nbsp;&nbsp;&nbsp;}<br>
})<br>
<br>
// css<br>
#scrollToTop:link,<br>
#scrollToTop:visited{<br>
&nbsp;display:none;<br>
&nbsp;position:fixed;<br>
&nbsp;top:15px;<br>
&nbsp;right:15px;<br>
&nbsp;padding:10px 20px;<br>
&nbsp;font-size:16px;<br>
&nbsp;font-weight:bold;<br>
&nbsp;text-decoration:none;<br>
&nbsp;background:#ccc;<br>
&nbsp;color:#333;<br>
&nbsp;-moz-border-radius:10px;<br>
&nbsp;-webkit-border-radius:10px;<br>
&nbsp;border-radius:10px;<br>
}

Page Load

// AJAXin links

// Stop default actions on the links we want to hijack
$(‘#navigation a[href$=html]‘).bind(‘click’,function(event){
event.preventDefault()
});

// Click on link within id with ending of HTML triggers this
$(‘#navigation a[href$=html]‘).click(function(e){

// Grab the href attribute of the clicked A and use it as linkURL variable
var linkURL = $(this).attr(‘href’);

// Show the Element that the content will be displayed in
$(‘#ajaxContainer’).show();

// AJAX
$.ajax({

// Use the variable linkURL as source for AJAX request
url:linkURL,
dataType:‘html’,

// If all goes well
success:function(data){
// This is where the fetched content will go
$(‘#ajaxContainer’)
// HTML added to DIV while content loads (It loads my spinner,you’ll have to come up with your own)
.html(‘<div id=”spinningLoader”><img src=”spinnerBlack.png”alt=”spinnerBlack”width=”100″height=”100″/></div>‘)
// Load from this URL this element class
.load(linkURL + ‘.columnWide’);

// It worked mother flipper
$.print(‘Load was performed.’);
}
});
});

Get Current Year

<script type=”text/javascript”>document.write(new Date().getFullYear());</script>