The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
slimJS
Posted by: slimJS | January 19, 2011 @ 9:47am
Javascript Code
[
Download
]
//Document Ready $(document).ready(function() { var current = -1; var my_id = ''; var id_len = -1; $('#listBox a, #puzzleMap area').mouseenter(function(){ my_id = this.id; id_len = my_id.length //store the last 2 characters from the id current = (my_id).substring( id_len-2, id_len ); //show content associated with this id $('#img'+current+', #roll'+current).show(); if(this.tagName == 'area') $('#list'+current).css({color: '#5e151c'}); }).mouseleave( function() { $('#img'+current+', #roll'+current).hide(); if(this.tagName == 'area') $('#list'+current).removeAttr('style'); }); });
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.54 / 8
74 Votes
http://codebin.yi.org/1067
page generated in 0.00 seconds