DrupalBin
Submit Code
About
Recent Posts
how to add a ahah form element after submit
8 hours 55 min
ago
user_deco add functions
9 hours 6 min
ago
simple version
11 hours 59 min
ago
Fix for D6 path_set_alias
12 hours 55 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for Code
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
// // Title: Artists tiles hover effect //********************************* this.artistnfo = function(e){ // Configuration xOffset = 55; yOffset = 480; $("ul.artist-tiles li > a").hover ( function (e) { $(this).parent().children(".profile-info") .css("top", (e.pageY - xOffset) + "px") .css("left", (e.pageX - yOffset) + "px") .css("display", "block") .fadeTo("fast", 0.88); }, function () { $(this).parent().children(".profile-info") .css("display", "none") .fadeTo("fast", 0); } ); $("ul.artist-tiles li > a").mousemove(function(e){ $(this).parent().children(".profile-info") .css("top", (e.pageY - xOffset) + "px") .css("left", (e.pageX - yOffset) + "px") } ); }; $(document).ready(function(){ // Starts jquery tool tip for artist tiles artistnfo(); });
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.