Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
03-21-2010, 08:14 AM | #1 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 54,855
|
little jquery help
how would i do this in jquery
Code:
onmouseout="reducethumb(1); return false;" onmouseover="expandthumb(1, 657, 623);"
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. WP Tube Themes |
03-21-2010, 08:43 AM | #2 |
Confirmed User
Industry Role:
Join Date: Jul 2007
Location: Intraweb
Posts: 274
|
Code:
$(".selector").hover(function() { reducethumb(1); return false; }, function () { expandthumb(1, 657, 623); }); |
03-21-2010, 08:46 AM | #3 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 54,855
|
how bout for each one. i have this
Code:
<img src="full.png" alt="" class="grow" id="screen1" onmouseout="reducethumb(1); return false;" width="240" height="227" /> <img src="thumb.png" alt="" class="shrink" id="thumb1" onmouseover="expandthumb(1, 657, 623);">
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. WP Tube Themes |
03-21-2010, 10:50 AM | #4 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 54,855
|
bump for scriptworkz
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. WP Tube Themes |
03-21-2010, 11:37 AM | #5 |
Totally Borked
Industry Role:
Join Date: Feb 2005
Posts: 6,284
|
Why are you trying to use jQuery for this when simple javascript works fine?
A clumsy, but functional way is to use the .attr handle to pass variable in the <img> tag to jQuery. eg Code:
<script type='text/javascript'> $(document).ready(function(){ $(".img_thumb").mouseover( function () { var var1 = $(".img_thumb").attr('var1'); var var2 = $(".img_thumb").attr('var2'); var var3 = $(".img_thumb").attr('var3'); expandthumb(var1, var2, var3); }); }); </script> <img class="img_thumb" src="thumb.png" var1="1" var2="657" var3="623" width="300" height="50" />
__________________
For coding work - hit me up on andy // borkedcoder // com (consider figuring out the email as test #1) All models are wrong, but some are useful. George E.P. Box. p202 |
03-21-2010, 12:00 PM | #6 | |
Confirmed User
Industry Role:
Join Date: Jul 2007
Location: Intraweb
Posts: 274
|
Quote:
Code:
$(".grow").hover(function() { }, function() { reducethumb(1); }); $(".shrink").hover(function() { expandthumb(1, 657, 623); }, function() {}); |
|