This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Jquery Version | |
$("table#").clickFunction(greyOut).slow(function(){ | |
$("image",this)resize(100,100); | |
$(this).wrap.css("border", "solid 1px white" | |
<a href="javascript: self.close()">Close Window</a>); | |
//Javascript Version | |
javascript: | |
for(i=0;i<document.getElementsByTagName('img').length;i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Animated Advertisement | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Animated Advertisement</title> | |
<style type = "text/css"> | |
#divAdvertisement { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Browser Type | |
<html> | |
<head> | |
<script language = "Javascript" script type = "text/javascript"> | |
function getBrowserName() | |
{ | |
var browser = navigator.userAgent; | |
if (browser.indexOf("MSIE") >= 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CSS Code | |
#popUpDiv { | |
position:absolute; | |
background-color: white | |
width:300px; | |
height:300px; | |
} | |
Javascript Code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { | |
alert( | |
"Unfortunately, this tool does not currently work in Internet Explorer. " + | |
"Please try another browser such as Firefox, Chrome, or Safari."); | |
return; | |
} | |
var anchor = document.getElementsByTagName('script')[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Mouseover_Image | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtmll/DTD/xhtmll-tansitional.dtd"> | |
<html> | |
<head> | |
<title>Usig the srcElement Property</title> | |
<script type = "text/javascript"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type = 'text/javascript'> | |
var fileName = ""; | |
function Play() | |
{ | |
document.video.Setsource("file:///" + fileName); | |
document.video.DoPlay(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show multiple sprite images on mouseover | |
<head> | |
<title> | |
<style type = "text/css"> | |
#b_products { | |
display: block; | |
float: left; | |
width: 260px; | |
height: 149px; |