Are you a regular stikked user? Signup so you can keep track of your pastes!

RE: RE: RE: case

By Tacky Lion, 1 Year ago, written in Javascript. This paste is a reply to RE: RE: case by joe Egan
URL http://stikked.com/view/35894925
  1. function verticalTextImgLists(listItemString){
  2.  
  3.                 var listItem = $(listItemString);
  4.  
  5.                 listItem.mouseover(function(){
  6.                         $(this).css({
  7.                                 'cursor' : 'pointer'
  8.                         });
  9.                         $(this).find('a').css({
  10.                                 'text-decoration' : 'underline'
  11.                         });
  12.                 });
  13.  
  14.                 listItem.mouseout(function(){
  15.                         $(this).find('a').css({
  16.                                 'text-decoration' : 'none'
  17.                         });
  18.                 });
  19.  
  20.                 listItem.click(function(){
  21.                         var href = $(this).find('a').attr('href');
  22.                         window.location.href = href;
  23.                 });
  24. }
  25.  
  26.  
  27. $(function (){
  28.         var page = $('body').attr('id');
  29.  
  30.         switch(page) {
  31.  
  32.                 case'news':
  33.                         verticalTextImgLists('ul.vertical-text-img li');
  34.                         verticalTextImgLists('ul.titled-lists li');
  35.  
  36.                         var nestedLists = $('ul.drop-down');
  37.                         dropDownList(nestedLists);
  38.  
  39.                         setSearchKeywordField();
  40.                 break;
  41.  
  42.                 default:
  43.                 break;
  44.         }
  45. });
  46.  
  47. // nothing happens when I run this code
  48. // If I execute
  49. // verticalTextImgLists('ul.vertical-text-img li');
  50. // in the console I get ReferenceError: verticalTextImgLists is not defined

Reply to "RE: RE: RE: case"

Here you can reply to the paste above

Create a snipurl

Make Private

Feeling clever? Set some advanced options.