Need enjin "Click to Copy" code snipet

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Ingots

Supreme
Feedback score
0
Posts
779
Reactions
392
Resources
0
http://www.enjin.com/forums/m/10826/viewthread/3939026-css-html-tricks-server-ip-copypaste-box

HTML:
<div align="center">
<span style="font-weight: bold;">YOUR TEXT HERE.<br></span>
<p></p>

<style>
.inputname {
    background: none repeat scroll 0 0 #000000;
    border: 1px solid #ffffff;
    color: #FFFFFF;
    font-family:Arial;
    font-size: 18px;
    font-weight: bold;
    height: 35px;
    margin: 10px;
    text-align: center;
    text-transform: uppercase;
    width: 174px;
}
* {
    margin: 0;
    padding: 0;
}
</style>

<input class="inputname" onclick="$(this).select();" readonly="readonly" value="YOUR IP HERE" type="text">
</div>



I googled "Enjin Click To Copy" first result shows you exactly how to do it in detail!

You're welcome!
 

Ingots

Supreme
Feedback score
0
Posts
779
Reactions
392
Resources
0
this only selects the ip it doesnt physically copy it

Don't just copy the code directly, Manipulate it for your needs.

You have the base for it, now go on Google and look up the second part of it. You have the base of what you want! You'll never learn anything if you don't try to at least do something yourself!
 

MMFULLEN

Feedback score
0
Posts
160
Reactions
6
Resources
0
Don't just copy the code directly, Manipulate it for your needs.

You have the base for it, now go on Google and look up the second part of it. You have the base of what you want! You'll never learn anything if you don't try to at least do something yourself!
Thank you sempi you have taught me well
 

Ingots

Supreme
Feedback score
0
Posts
779
Reactions
392
Resources
0
If you read into the code, the part where it says "onclick="$(this).select();" This highlights It, all you have to do is make it so it copies to clipboard, a quick google will show that.[DOUBLEPOST=1446344338,1446344305][/DOUBLEPOST]
Thank you sempi you have taught me well

Hey, we've all been in your position. Can't be pro at everything first time :)
 

MMFULLEN

Feedback score
0
Posts
160
Reactions
6
Resources
0
If you read into the code, the part where it says "onclick="$(this).select();" This highlights It, all you have to do is make it so it copies to clipboard, a quick google will show that.[DOUBLEPOST=1446344338,1446344305][/DOUBLEPOST]

Hey, we've all been in your position. Can't be pro at everything first time :)
I cant find the onclick event code snippet that works
 

z1haze

Feedback score
0
Posts
147
Reactions
39
Resources
0
those guys are using something called zero clipboard, its pretty archaic but it works. It uses an swf to copy to your clipboard. However, with the latest versions of jquery, you dont need flash.
 

MMFULLEN

Feedback score
0
Posts
160
Reactions
6
Resources
0
those guys are using something called zero clipboard, its pretty archaic but it works. It uses an swf to copy to your clipboard. However, with the latest versions of jquery, you dont need flash.
Can you help me with it ?
 
Status
This thread has been locked.
Top