Sha256: 437298841dbdf1ae39251d18cc5a235b50bf71a34499bfda7b5a8b0ddb47f640

Contents?: true

Size: 542 Bytes

Versions: 1

Compression:

Stored size: 542 Bytes

Contents

module JQueryCheats
  require 'railtie' if defined?(Rails)
  module HoverImage
    #class used to do a quick Hover image
    
    #class << self
      
    def mouseoverimage(initimage,hoverimage)
      @cheats_image_tag =""
      @cheats_image_tag = "<img src=\"#{initimage}\" alt=\"image\" onmouseover=\"$(this).attr('src','#{hoverimage}')\" onmouseout=\"$(this).attr('src','#{initimage}')\">"
      return @cheats_image_tag.html_safe
    end
    
    def initialize()
     
    end
    
    #end#end self
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jquery_cheats-1.0.0 lib/jquery_cheats.rb