|
hey again. i've seen a javascript function somewhere where you click on alink and it copies text to your clipboard.
jsut wodnering how i would do this.
thanks, fredy
|
k
|
|
|
|
To the clipboard? That's IE only. This is the code I made for the Affiliates script. getCode: function(){ var gencode = "<a href='http://"+location.host+"'><img src='"+aff.mbUrl+"' border='0' alt='"+document.title.split(/-/i)[0]+"' title='"+document.title.split(/-/i)[0]+"' /></a>"; try { var te = document.getElementById("te"); te.value = gencode; co = te.createTextRange(); co.execCommand("Copy"); alert("The code has been copied to your clip board."); } catch(e){ prompt("Copy the code below to your clipboard using ctrl+c.",gencode); } },
|
|
|
|
|
thanks. this will be something i will have to study and possibly use
|
k
|
|
|
|
|
FF doesn't support the property. I don't think there's anyway to alternate that. =/
|
|
|
|
|
|
Darn, i wonder if FF will ever come out with a more...supportive...version This is a little off topic but I have to say that Firefox is the best thing that ever happened to the Internet and web browsing.
|
|
|
|
FF's to standards, IE's making stuff up. If you had an Algebra book teaching you Geometry, would you use it or the book that really taught Algebra? I'd take the Algebra book, aka FF. No the Algebra/Geometry book aka IE.
|
|
|
|
|
FF's to standards, IE's making stuff up. If you had an Algebra book teaching you Geometry, would you use it or the book that really taught Algebra? I'd take the Algebra book, aka FF. No the Algebra/Geometry book aka IE. Algebra and Geometry are boring and pointless.
|
Greg says: Coding music... Greg says: Hmm... Greg says: I wouldn't rule it out. Chris 3.0 [New features? Yes.] says:
Greg says: If you think about machine code it's a bunch of 1s and 0s Chris 3.0 [New features? Yes.] says: Anything is possible. Greg says: Yeah try to code Metallica Chris 3.0 [New features? Yes.] says: Yeah, I'll get right on that... right after I learn to fly.
|
|
|
|
FF's to standards, IE's making stuff up. If you had an Algebra book teaching you Geometry, would you use it or the book that really taught Algebra? I'd take the Algebra book, aka FF. No the Algebra/Geometry book aka IE. Algebra and Geometry are boring and pointless. *falls off a cliff laughing*
|
|
|
|
|
Stay on topic please guys...
anyway i see this topic is gonna end up going to a fight between IE and FF hogs... lol... keep it clean or i will just lock this topic
|
|
|
|
|
|
You can't copy something automatically to a clipboard, because FF is made to work on Mac too, therefor the clipboard is different....
|
|
|
|
|
isn't there a way of seeing what OP system they are on? and then just using an if statement to switch between the two?
|
|
|
|
|
Probably, but doesn't matter. FF doesn't support the function anyway.
|
|
|
|