Bitcoin Forum

Bitcoin => Bitcoin Discussion => Topic started by: osmosis on July 09, 2011, 06:30:20 AM



Title: Can someone design a bitcoin address popup box?
Post by: osmosis on July 09, 2011, 06:30:20 AM

Im thinking something about the size of the google +1 button, or the facebook Like button. But when you click it, it would pop up a small window with an easily copyable bitcoin address. The image itself could be a golden bitcoin or such.  I was imaging people using something creative like this instead of just having the long random strings pasted everywhere on the net.

Please let me know if you think this is a good idea, how it could be implemented, and if you are interested in creating it. 
If you think its a good idea and want to see it happen, consider putting in btc bounty for it. 


Title: Re: Can someone design a bitcoin address popup box?
Post by: marcusaurelius on July 09, 2011, 08:30:32 AM
Code:
<a href="#bitcoin" onclick="window.prompt ('Copy to clipboard: Ctrl+C, Enter', '1Bo3Nqu1rKWvDzHmZJ7GD2BGnsg6YoqzPr');">
<img src="data:image/gif;base64,R0lGODlhDQANAMZ4AIRjEYloGIttJoxuJJF2M5yCRKKGQaOJSayJM7CWWLeXPbmYSsiiRcWlRLyt
h72uh8WuddSzY9WzY820dc22etG3b9G4c963Wtq4Y9y5XNi6ZNm5bta7bN+6Xd+7Yd28YtK9heC9
XuW+W8u/odi/e+K/ZeW/YNjAgtvBcuTAZObAZOa/cefBYOXCYefBaNrEduTCcePEatnFhubEaufE
aOTGZuXEd+fEc+nEdOnHaOfHcObHdOjIZenIbOnIbenJbuzJbOrJc+nKfe3La+zKeO7Mb+rMge3O
bO/Ocu3Pc93Pq/HPdezPhfDQc/TPgenUd/DTdN/SsfDVbfDUevPTifTVdPbTifLVgfTWh+DXwPTY
f/PXj/nXf/fZdPjYffbZfffaefrZe/rcfPncg+bcw+Xcxvrfivbgjvzfi/rhgvrhhfngmPvgl/rh
kf3ijPnkjvzjk/zjlfvlk/vllf3og/3mnfzqjP7sj////////////////////////////////yH5
BAEKAH8ALAAAAQAMAAwAAAeGgH+CSiQaHCBZgooVXmJganc1CYoWaEAiLCYqVUcHf1FnRC4pIR0e
F10NIzJzKzhBPz0zJTxSBS9vTlZYV1NJPjR0AShaN1RscWZfTUV2ACdhGEJrdXBjSFBPBGQtHxFG
W0w7MWkKDn8TQzowNhsSSxkCihQ5bnJtXAwDioJlEAsIDDxQFAgAOw==" alt="Click for my Bitcoin Adress" />

here you go.

change the string in the second line to your btc-adress and there you go. the string in there is mine, so you can send your bounty to that adress. :-)

there is a shorter way, namely the following:

Code:
<a href="#bitcoin" onclick="window.prompt ('Copy to clipboard: Ctrl+C, Enter', '1Bo3Nqu1rKWvDzHmZJ7GD2BGnsg6YoqzPr');">
<img src="http://forum.bitcoin.org/smf/Themes/custom1/images/star.gif" alt="Click for my Bitcoin Adress" />

but this polls the bitcoin forum for the image everytime. so if you use it consider hosting the graphic on your own server. the first code example i gave has the image embedded in base64.




Title: Re: Can someone design a bitcoin address popup box?
Post by: osmosis on July 09, 2011, 08:21:30 PM
marcusaurelius -
Very good start. Thx much.

Id like to see the popup happen within the browser window, using CSS if thats how its done, instead of as as a separate javascript popup.

Found these, more of what I had in mind.

I want something like this, http://trentrichardson.com/Impromptu/index.php ,  but having the dialog pop up close to the clicked button, and without the background page fading to grey. Also, a Copy button that copies the displayed text string into the users clipboard (if that is actually possible.)