Unstoppable Domains

Copy to clipboard feature

Spaceship Spaceship
Watch
Status
Not open for further replies.

ddzc

Established Member
Impact
44
Hi all,

I need something done here identical to retailmenot.com. Under popular coupons, if you click a coupon code, it copies to the clipboard and opens a new web window to a specified site. I looked at the code on the site and it looks like they're calling a flash file (http://s.retailmenot.com/ui/_clipboard.swf). Theres many free codes out there and I tried screwing around but I can't get it working exactly how I want it. I want it to function and look 100% like the site I mentioned above.

I'm also running wordpress so I need this to work on all pages and I need this to work on all browsers or most (IE, Firefox, etc)

Please let me know what you can do for me..thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
0
•••
Hi Weblord,

Thanks a lot for the response. I actually couldn't figure out how to use the clipboard with that wordpress plugin..theres no documentation or codes from the developer on how to use that feature..

The other two are similar to the code I already have. Basically theres a button and it calls out the text defined in "sample2" ID. So, i'll have to insert text on the screen somewhere other than the button and have a button to copy it to the clipboard. This definitely works but I need it to function the exact same way of the above site. I need to get rid of the button, convert it to a highlighted URL and I need to edit the coding so it copies the text in the highlighted URL Name (instead of copying the text defined somewhere else on the page which comes from the div id) and then I need the link to operate and re-direct. I have the code below..would anyone know how to tweak it to get it working?

<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="channelList" type="text/xml+syndicationlist" href="/rss/news.xml" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="/rss/news.xml" />
<link rel="alternate" type="application/rss+xml" title="ROR" href="sitemap.xml" />
<script src="swfobject.js" type="text/javascript"></script>
<link rel="stylesheet" href="../../viala.css" type="text/css">

<link rel="stylesheet" href="copyclipboard.css" type="text/css">
<script src="copyclipboard.js" type="text/javascript" language="javascript"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>

<br>
<p class="parag">
<div id="example">
<center>
<div id="sample2">
C16H43
</div>
</center>
<div style="clear: both" valign=bottom>
<br>

<input type="button" onclick="copy_clipboard('sample2');" class="button" value="Code" style="width: 200px;">

</div>
</p>
<br>
</div>
</td>
</tr>
</table>
</body>
</html>

Thanks very much!
 
Last edited:
0
•••
,,,,,
 
0
•••
Status
Not open for further replies.
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back