|
Author |
Message |
marc.kiko
Graphic Designer
Posts : 654
Age : 33
Location : inside your heart! ^^
Country :
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: Draggable Comments Tue Sep 09, 2008 9:47 pm |
|
|
steps : - create a text file - copy and paste the code - save it as drag.js - paste the link here <script src=" Direct Link"></script> -then copy and paste the code in any of the following About Me Who I Want To Meet Media Box you dont have to edit anything. ^^ - Code:
-
try { sty = document.createElement("style"); sty.type = "text/css"; sty.innerHTML = ".data{position:relative;cursor:move;}"; document.getElementsByTagName("head")[0].appendChild(sty); }catch(e){} try { document.styleSheets[document.styleSheets.length - 1].addRule(".data", "position:relative;"); }catch(e){}
var ie=document.all; var nn6=document.getElementById&&!document.all;
var isdrag=false; var x,y; var dobj;
function movemouse(e) { if (isdrag) { dobj.style.left = nn6 ? tx + e.clientX - x : tx + event.clientX - x; dobj.style.top = nn6 ? ty + e.clientY - y : ty + event.clientY - y; return false; } }
function selectmouse(e) { var fobj = nn6 ? e.target : event.srcElement; var topelement = nn6 ? "HTML" : "BODY";
while (fobj.tagName != topelement && fobj.className != "data") { fobj = nn6 ? fobj.parentNode : fobj.parentElement; }
if (fobj.className=="data") { isdrag = true; dobj = fobj; tx = parseInt(dobj.style.left+0); ty = parseInt(dobj.style.top+0); x = nn6 ? e.clientX : event.clientX; y = nn6 ? e.clientY : event.clientY; document.onmousemove=movemouse; return false; } }
document.onmousedown=selectmouse; document.onmouseup=new Function("isdrag=false");
var disprimpic = getElementsByClassName(null,"div","data")[0]; disprimpic.innerHTML = disprimpic.innerHTML.replace(/<a[\S\s]+?>/i,"").replace(/<\/a>/,"");
function getElementsByClassName(oElm,sTag,sClass) { var elm = []; if (!oElm)oElm = document; if (!sTag)sTag = "*"; var els = oElm.getElementsByTagName(sTag) || document.all; for (var j=0,k=els.length;j<k;j++) { if (new RegExp(sClass).test(els[j].className)) { elm.push(els[j]); } } return elm; } Live Preview credits by aidenlive removed nonsense codes .. edited by adminincluded credits .. edited by daryll
|
|
|
|
DHONN.
Retired Moderator
> : I love HCG!
Posts : 782
Age : 30
Location : i`m from vain.
Reg-Date : 2008-09-04
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Tue Sep 09, 2008 9:50 pm |
|
|
|
|
|
|
Admin
Administrator
> : I love HCG!
Posts : 195
Country :
Reg-Date : 2008-09-03
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Tue Sep 09, 2008 9:52 pm |
|
|
removed nonsense codes .. edited by admin
|
|
|
|
QuEen
HCG Member
> : I love HCG!
Posts : 42
Age : 30
Reg-Date : 2008-09-09
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Tue Sep 09, 2008 10:01 pm |
|
|
wow.. nice.. hehehe thanks for sharing
|
|
|
|
jendysam
HCG Freak
> : I love HCG!
Posts : 176
Age : 32
Location : cebu city .
Country :
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Wed Sep 10, 2008 1:06 am |
|
|
lOve it ..
|
|
|
|
mzazie
HCG Freak
> : I love HCG!
Posts : 147
Age : 34
Location : Oh. @ your hart? lewls
Reg-Date : 2008-09-09
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Wed Sep 10, 2008 1:44 pm |
|
|
|
|
|
|
LHEiZELAH :]
HCG Member
> : I love HCG!
Posts : 24
Age : 30
Reg-Date : 2008-09-09
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Wed Sep 10, 2008 4:49 pm |
|
|
whew..
nice one..
nyahaha..
|
|
|
|
Chirokipau
Global Mod
> : LOL?XD
Posts : 1836
Age : 31
Location : Cavite.General trias.
Mood : Happy
Country :
Reg-Date : 2008-09-04
Forum Warning :
Contribution :
|
Subject: XD Wed Sep 10, 2008 4:51 pm |
|
|
Kip sharIng mah niGGa.. LOL
|
|
|
|
ryan maxx
HCG Wizard
> : I love HCG!
Posts : 68
Age : 35
Location : DABAW city
Reg-Date : 2008-09-09
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Wed Sep 10, 2008 7:38 pm |
|
|
thankz for sharing it dude..
:D
|
|
|
|
marc.kiko
Graphic Designer
Posts : 654
Age : 33
Location : inside your heart! ^^
Country :
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Wed Sep 10, 2008 8:42 pm |
|
|
- airel123cola wrote:
- Kip sharIng mah niGGa..
LOL im not a nigga! lol! :51:
no worries :49:
|
|
|
|
bitter piLL
HCG Addict
> : I love HCG!
Posts : 286
Age : 32
Location : SomeWhereDownTheRoad
Reg-Date : 2008-09-09
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Thu Sep 11, 2008 5:59 am |
|
|
|
|
|
|
ASHHHexclusive :]
HCG Geek
> : I love HCG!
Posts : 821
Age : 32
Location : in diz freakin EARTH.. xD
Reg-Date : 2008-09-10
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Thu Sep 11, 2008 6:30 pm |
|
|
COoOLL one man!
thanks..
|
|
|
|
marc.kiko
Graphic Designer
Posts : 654
Age : 33
Location : inside your heart! ^^
Country :
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Thu Sep 11, 2008 7:24 pm |
|
|
|
|
|
|
darkmaster
Graphic Designer
> : I love HCG!
Posts : 435
Age : 35
Location : Some WeRe Out ThErE..
Reg-Date : 2008-09-09
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Sun Sep 14, 2008 3:07 am |
|
|
|
|
|
|
edz..lynne
Promoter
> : GOD gave his son...
Posts : 542
Age : 99
Location : sUmWEr ovER d raInbOW
Mood : Cheerful
Country :
Reg-Date : 2008-09-05
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Sun Sep 14, 2008 4:36 pm |
|
|
|
|
|
|
marc.kiko
Graphic Designer
Posts : 654
Age : 33
Location : inside your heart! ^^
Country :
Reg-Date : 2008-09-08
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Sun Sep 14, 2008 4:56 pm |
|
|
|
|
|
|
iloveyumi
HCG Addict
> : kitty ! meow ~ ♥
Posts : 281
Age : 28
Location : sun
Mood : Dorky
Reg-Date : 2008-10-12
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Sun Oct 12, 2008 1:11 pm |
|
|
nice trick but kindda mess. but thanks for sharing. :)
|
|
|
|
dew
HCG Freak
> : I love HCG!
Posts : 114
Age : 100
Location : lubb bein ir*
Reg-Date : 2008-10-18
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Fri Oct 24, 2008 7:06 pm |
|
|
|
|
|
|
WHere aRe u Jasper?
HCG Member
> : I love HCG!
Posts : 10
Age : 29
Location : MANILA BAY
Reg-Date : 2008-10-23
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Sat Oct 25, 2008 12:31 am |
|
|
NakakAinis di aq MArunong huhu?
|
|
|
|
jhu-anne
HCG Member
> : I love HCG!
Posts : 15
Location : CAVITE
Reg-Date : 2008-10-25
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Sun Oct 26, 2008 7:01 pm |
|
|
Nice One!!! Thnx For SharIn
|
|
|
|
urlilprinxes
Guest
> : I love HCG!
Posts : 6
Age : 31
Location : Quezon City, Metro Manila, PH
Reg-Date : 2008-11-02
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Tue Nov 04, 2008 10:43 pm |
|
|
|
|
|
|
wytsxarha
HCG Freak
> : I love HCG!
Posts : 107
Age : 32
Reg-Date : 2008-10-28
Forum Warning :
Contribution :
|
|
|
|
xoxotam
HCG Addict
> : so buzy.. :D
Posts : 280
Mood : Amused
Country :
Reg-Date : 2008-10-10
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Thu Nov 06, 2008 11:18 pm |
|
|
weee...tenks for sharin..^^
|
|
|
|
A - BEE
HCG VIP Member
> : ?
Posts : 10998
Age : 28
Reg-Date : 2008-09-16
Forum Warning :
Contribution :
|
|
|
|
iyaken XP
HCG Wizard
> : I love HCG!
Posts : 65
Age : 33
Location : nobody's heart
Mood : Alone
Reg-Date : 2008-10-11
Forum Warning :
Contribution :
|
Subject: Re: Draggable Comments Thu Nov 27, 2008 1:28 pm |
|
|
this is nice tenks for sharing
|
|
|
|
Sponsored content
|
Subject: Re: Draggable Comments |
|
|
|
|
|
|
|