Click here to Skip to main content
15,897,519 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
i want to add a tip----click to copy to the Copy To Clipboard... button like this site(http://www.retailmenot.com/[^]). the yellow part with a Scissor. but when i using jquery to add a tip to it. it doesn't work. why?

i test it on this
site:http://bowser.effectgames.com/~jhuckaby/zeroclipboard/test10.html

$(document).ready(function(){
   $("#d_clip_container").hover(
  function () {
    $(this).append($('<span class="tip">click to copy</span>'));
  },
  function () {
    $(this).find("span:last").remove();
  });
})


i have added the jquery library. The reason the tooltip can't work maybe the copied text is wrapped by the flash, but this site (retailmenot.com) can do. i don't know why?

anyone helps?
Posted
Updated 11-May-11 2:11am
v5
Comments
Karthik. A 6-May-11 22:03pm    
Formatted the question
Ankur\m/ 7-May-11 5:42am    
For me it is getting copied to the clipboard. I am using FF 4. Or do you mean something else?
zhuanzhou 7-May-11 22:01pm    
i want to add a tooltip to it, when the mouse hover on the flash. thank you.

1 solution

Sorry my friend, the page you have stated that this code is supposed to be run on does NOT include jQuery and the code which you posted is also nowhere to be found. Something is not quite right here. Please check that the page you linked to actually has to to with your question.

Thanks for your cooperation!

-MRB
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900