jquery

Jquery tooltip mess

  1. //
  2. //      Title: Artists tiles hover effect
  3. //*********************************
  4.         this.artistnfo = function(e){   
  5.                 //      Configuration
  6.                 xOffset = 55;
  7.                 yOffset = 480;
  8.                

Code

  1. //
  2. //      Title: Artists tiles hover effect
  3. //*********************************
  4.         this.artistnfo = function(e){   
  5.                 //      Configuration
  6.                 xOffset = 55;
  7.                 yOffset = 480;
  8.                
Rob Loach's picture

jQuery.Disqus.js

  1. // $Id$
  2.  
  3. /**
  4.  * Disqus jQuery plugin
  5.  * Applies Disqus comments to a page using a simple jQuery call.
  6.  * $.Disqus({domain: "myusername"});
  7.  *
  8.  

Fix for dynamic change button label

  1. if (Drupal.jsEnabled)
  2. $(function () {
  3.  
  4.   // add trigger to the button
  5.   $('input#edit-ignore-node').click(function () {
  6.     // change button label
  7.     $(this).attr('value', 'Other label');

Fix for dynamic change button label

  1. $(function () {
  2.  
  3.   // add trigger to the button
  4.   $('input#edit-ignore-node').click(function () {
  5.     // change button label
  6.     $(this).attr('value', 'Other label');
  7.  
  8.     // get nid value

Fix for dynamic change button label

  1. $(function () {
  2.  
  3.   // add trigger to the button
  4.   $('input#edit-ignore-node').click(function () {
  5.     // change button label
  6.     $(this).attr('value', 'Other label');
  7.  
  8.     // get nid value

dynamic change button label

  1. $(function () {
  2.  
  3.   // add trigger to the button
  4.   $('input#ignore-node').click(function () {
  5.     // change button label
  6.     $(this).attr('value', 'Other label');
  7.  
  8.     // get nid value

Fix for Swap out javascript (jQuery) files

  1. We talked a little about the "best" way to swap out javascript files and the way we've been doing it recently for sites that require 1.2 and higher, you can use this method.

Fix for Edit a hidden value with jQuery and have it show up in $form_values (D5)

  1. <?php
  2.  
  3. /**
  4.  * This won't work when you first submit it... the hider will still show 3.
  5.  * Change #value to #default_value on the hidden field for it to work.
  6.  */
  7.  
  8. function test_form() {

Edit a hidden value with jQuery and have it show up in $form_values (D5)

  1. <?php
  2. function test_form() {
  3.   $form['hider'] = array('#type' => 'hidden', '#value' => 3);
  4.   $form['submit'] = array('#type' => 'submit', '#value' => 'Submit');
  5.   return $form;
  6. }
Syndicate content