Login   Register  
Icontem

File: jquery_example.html

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Arturs Sosins  >  Glint effect  >  jquery_example.html  >  Download  
File: jquery_example.html
Role: Example script
Content type: text/plain
Description: jQuery example
Class: Glint effect
Create a glint light effect on HTML page elements
Author: By
Last change:
Date: 2011-09-22 09:07
Size: 1,519 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<!--
/*************************************************************
 * This script is developed by Arturs Sosins aka ar2rsawseen, http://webcodingeasy.com
 * Feel free to distribute and modify code, but keep reference to its creator
 *
 * Glint effect provides you an ability to add glint effect 
 * to different HTML objects, which can append canvas element
 *
 * For more information, examples and online documentation visit: 
 * http://webcodingeasy.com/JS-classes/Javascript-glint-effect
**************************************************************/
-->
<html>
<head>
</head>
<body>
<style type="text/css">
  #line {
    position:relative;
	width: 600px;
	left:50px; 
	top:40px;
	height: 100px;
	background-color: red;
	font-size: 100px;
  }
  #line2 {
    position:relative;
	width: 100px;
	left:50px; 
	top:40px;
	height: 600px;
	background-color: red;
	font-size: 100px;
	text-align: center;
  }
</style>
<!-- a line from A to B -->
<div id="line">
	Some text here
</div>

<div id="line2">
S<br/>o<br/>m<br/>e<br/>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<script type="text/javascript" src="./glint.jquery.js" ></script>
<script type="text/javascript">
$("#line").glint({onerror: function(){alert("Your browser doesn't support canvas");}});
$("#line2").glint({horizontal: false, angle: 135, onerror: function(){alert("Your browser doesn't support canvas");}});
</script>
</body>
</html>