MediaWiki:Cloud ServicesV2.js: Difference between revisions

From Melissa Data Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 7: Line 7:
//Changes the Product Icon Tile to act like a button
//Changes the Product Icon Tile to act like a button
$(".ProductIconTile").css({"cursor":"pointer"});//Cursor change to a button-style
$(".ProductIconTile").css({"cursor":"pointer"});//Cursor change to a button-style
$(".ProductIconTile").hover(function(){$(this).css({"background-color":"#ffffff","outline":"3px solid grey"});},function(){$(this).css({"background-color":"#f2f2f2","outline":"0px"});});//Hover change effect
$(".ProductIconTile").hover(function(){$(this).css({"background-color":"#ffffff","outline":"3px solid #f2f2f2"});},function(){$(this).css({"background-color":"#f2f2f2","outline":"0px"});});//Hover change effect


$(".ProductIconTile").title = ("This is a title test!");
$(".ProductIconTile").title = ("This is a title test!");

Latest revision as of 01:14, 22 November 2018

//Click Handler for Product Icon Tile
$(".ProductIconTile").click(function (){
  window.location = $(this).find("a").attr("href"); 
  return false;
});

//Changes the Product Icon Tile to act like a button
$(".ProductIconTile").css({"cursor":"pointer"});//Cursor change to a button-style
$(".ProductIconTile").hover(function(){$(this).css({"background-color":"#ffffff","outline":"3px solid #f2f2f2"});},function(){$(this).css({"background-color":"#f2f2f2","outline":"0px"});});//Hover change effect

$(".ProductIconTile").title = ("This is a title test!");