|
Author |
Message |
danzkhietorz
HCG Addict
> : i love friendstertutorials
Posts : 201
Age : 32
Location : manila
Mood : Happy
Country :
Reg-Date : 2008-11-29
Forum Warning :
Contribution :
|
Subject: DRAGGABLE PRIMARY IMAGE Thu Dec 25, 2008 11:25 am |
|
|
MODS DELETE THIS THREAD IF ALREADY POSTED Credits: KhErMiNaToRPreview: CLICK HERE - Spoiler:
try { sty = document.createElement("style"); sty.type = "text/css"; sty.innerHTML = ".imgblock200{position:relative;cursor:move;}"; document.getElementsByTagName("head")[0].appendChild(sty); }catch(e){} try { document.styleSheets[document.styleSheets.length - 1].addRule(".imgblock200", "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 != "imgblock200") { fobj = nn6 ? fobj.parentNode : fobj.parentElement; }
if (fobj.className=="imgblock200") { 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","imgblock200")[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 if (new RegExp(sClass).test(els[j].className)) { elm.push(els[j]); } } return elm; }
PLACED THE CODE IN YOUR JS FILE EXTENSION
Last edited by danzkhietorz on Thu Dec 25, 2008 12:21 pm; edited 3 times in total
|
|
|
|
it'sCHAIISA!™
HCG Elite
> : Lovers Love, Liars Lie
Posts : 1898
Age : 30
Location : in yer ♥;]
Mood : Blissful
Country :
Reg-Date : 2008-09-09
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Thu Dec 25, 2008 11:29 am |
|
|
dats cool:) tenx fer sharing;]
|
|
|
|
danzkhietorz
HCG Addict
> : i love friendstertutorials
Posts : 201
Age : 32
Location : manila
Mood : Happy
Country :
Reg-Date : 2008-11-29
Forum Warning :
Contribution :
|
|
|
|
janbuniel
HCG Geek
> : im always here (online@ 11:00 in noon until 11:30 pm in the afternun still online (:!
Posts : 925
Age : 28
Location : HAWALLI [KUWAIT]
Mood : Gloomy
Reg-Date : 2008-11-05
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Thu Dec 25, 2008 11:45 am |
|
|
OMG!!!! I LURVE THIS!!!! IT RILLY WORKED :D LMAO. HAHAHA!!! IT'S FUNNY I LIKE IT AGAIN THNX.
|
|
|
|
danzkhietorz
HCG Addict
> : i love friendstertutorials
Posts : 201
Age : 32
Location : manila
Mood : Happy
Country :
Reg-Date : 2008-11-29
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Thu Dec 25, 2008 12:22 pm |
|
|
yup it is 100% works...both ie and ff
|
|
|
|
Pawem
Promoter
> : i miss this :)
Posts : 3903
Age : 30
Location : Britannia
Mood : Energetic
Country :
Reg-Date : 2008-09-19
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Thu Dec 25, 2008 12:39 pm |
|
|
nice bro. kip sharing. kip it up.
|
|
|
|
iza1817
HCG Maniac
> : wassup people?
Posts : 2359
Age : 30
Location : japan
Mood : Bittersweet
Country :
Reg-Date : 2008-11-09
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Thu Dec 25, 2008 12:42 pm |
|
|
wow nice iloveit
|
|
|
|
danzkhietorz
HCG Addict
> : i love friendstertutorials
Posts : 201
Age : 32
Location : manila
Mood : Happy
Country :
Reg-Date : 2008-11-29
Forum Warning :
Contribution :
|
|
|
|
janbuniel
HCG Geek
> : im always here (online@ 11:00 in noon until 11:30 pm in the afternun still online (:!
Posts : 925
Age : 28
Location : HAWALLI [KUWAIT]
Mood : Gloomy
Reg-Date : 2008-11-05
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Thu Dec 25, 2008 4:47 pm |
|
|
uhm can i ask a ready to paste code? my fileave is not working i dunno why please im begging.. im waiting
|
|
|
|
danzkhietorz
HCG Addict
> : i love friendstertutorials
Posts : 201
Age : 32
Location : manila
Mood : Happy
Country :
Reg-Date : 2008-11-29
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Sat Dec 27, 2008 10:32 am |
|
|
- janbuniel wrote:
- uhm can i ask a ready to paste code?
my fileave is not working i dunno why please im begging..
im waiting sure here's the ready to paste code: - Code:
-
<script src="http://danzkhietorz09.fileave.com/draggableprimarypic.js"></script>
|
|
|
|
janbuniel
HCG Geek
> : im always here (online@ 11:00 in noon until 11:30 pm in the afternun still online (:!
Posts : 925
Age : 28
Location : HAWALLI [KUWAIT]
Mood : Gloomy
Reg-Date : 2008-11-05
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Sat Dec 27, 2008 12:37 pm |
|
|
|
|
|
|
johncarlo™
HCG Addict
> : I'm screaming, "I love you so.
Posts : 282
Age : 29
Location : Cebu City
Country :
Reg-Date : 2008-10-12
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Sat Dec 27, 2008 1:08 pm |
|
|
|
|
|
|
henrea18
HCG Addict
> : ENVY me! his MINE!
Posts : 435
Age : 34
Location : SJDM bulacan.
Country :
Reg-Date : 2008-12-27
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Sun Dec 28, 2008 2:53 pm |
|
|
<font face=thereza size=5 color=beige>nice nice (:</font>
|
|
|
|
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: Re: DRAGGABLE PRIMARY IMAGE Sun Dec 28, 2008 3:22 pm |
|
|
Nice bro. i'll put this too in the compilation.. :]]
|
|
|
|
danzkhietorz
HCG Addict
> : i love friendstertutorials
Posts : 201
Age : 32
Location : manila
Mood : Happy
Country :
Reg-Date : 2008-11-29
Forum Warning :
Contribution :
|
|
|
|
lardigene
HCG Freak
> : nmimis ko c A****!
Posts : 133
Age : 30
Location : pangasinan
Mood : Bittersweet
Country :
Reg-Date : 2008-10-11
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Tue Dec 30, 2008 4:24 pm |
|
|
cn i have a ready-to-paste code?? or can you teach me about that "js file extension"??
|
|
|
|
danzkhietorz
HCG Addict
> : i love friendstertutorials
Posts : 201
Age : 32
Location : manila
Mood : Happy
Country :
Reg-Date : 2008-11-29
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Tue Dec 30, 2008 4:31 pm |
|
|
- lardigene wrote:
- cn i have a ready-to-paste code??
or can you teach me about that "js file extension"?? hers the ready to paste buddy - Code:
-
<script src="http://danzkhietorz09.fileave.com/draggableprimarypic.js"></script> happy tweaking..
|
|
|
|
nicholai
Promoter
> : Whaaaaa.!!!
Posts : 467
Age : 34
Location : Dasmarinas, Cavite
Mood : Bewildered
Country :
Reg-Date : 2008-12-09
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Tue Dec 30, 2008 4:37 pm |
|
|
|
|
|
|
lardigene
HCG Freak
> : nmimis ko c A****!
Posts : 133
Age : 30
Location : pangasinan
Mood : Bittersweet
Country :
Reg-Date : 2008-10-11
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Tue Dec 30, 2008 4:49 pm |
|
|
|
|
|
|
danzkhietorz
HCG Addict
> : i love friendstertutorials
Posts : 201
Age : 32
Location : manila
Mood : Happy
Country :
Reg-Date : 2008-11-29
Forum Warning :
Contribution :
|
|
|
|
chick flicks
HCG Addict
> : I love HCG! <3 ..
Posts : 411
Age : 31
Location : CALOOCAN
Mood : Happy
Reg-Date : 2008-11-08
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Tue Dec 30, 2008 4:57 pm |
|
|
|
|
|
|
danzkhietorz
HCG Addict
> : i love friendstertutorials
Posts : 201
Age : 32
Location : manila
Mood : Happy
Country :
Reg-Date : 2008-11-29
Forum Warning :
Contribution :
|
|
|
|
siemonette
HCG Addict
> : make lab not war :D
Posts : 241
Age : 28
Location : Philippines
Mood : Good
Country :
Reg-Date : 2008-12-12
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Wed Jan 07, 2009 4:17 pm |
|
|
|
|
|
|
ivan1234567890
HCG Freak
> : Waiting for Twix =)
Posts : 105
Age : 28
Location : Philippines
Mood : Crazy
Country :
Reg-Date : 2008-12-10
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Wed Jan 07, 2009 4:56 pm |
|
|
tanxX k'ya danz! tanX for sherin' kipitap! haha! its coooL!
|
|
|
|
redsyndrome23
HCG Member
> : I love HCG!
Posts : 21
Age : 32
Location : ~somewhere~
Mood : Crazy
Reg-Date : 2008-10-22
Forum Warning :
Contribution :
|
Subject: Re: DRAGGABLE PRIMARY IMAGE Wed Jan 07, 2009 5:47 pm |
|
|
haha. this one is so cool. thanks!
|
|
|
|
Sponsored content
|
Subject: Re: DRAGGABLE PRIMARY IMAGE |
|
|
|
|
|
|
|