XGDesignz
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
HomePortalLatest imagesSearchRegisterLog in

 

 Make Primary Picture Dragable

Go down 
2 posters
AuthorMessage
NeoTech
Administrator
Administrator



Male
Number of posts : 119
Age : 34
Location : BeYoND The gOdLiKE....xD
Job/hobbies : xD....WebSItING,cHAttiNG
Shoutout : PleaSe rEGistER to ouR foRUM......xD
<b><font color=blue>Reputation</col :
Make Primary Picture Dragable Left_bar_bleue0 / 1000 / 100Make Primary Picture Dragable Right_bar_bleue

<b><font color=red>Violation</color :
Make Primary Picture Dragable Left_bar_bleue0 / 1000 / 100Make Primary Picture Dragable Right_bar_bleue

Registration date : 2008-08-26

Make Primary Picture Dragable Empty
PostSubject: Make Primary Picture Dragable   Make Primary Picture Dragable I_icon_minitimeFri Aug 29, 2008 10:36 am

Just copy n paste this code inside your JS file:

Code:
$$('div.imgblock200')[0].makeDraggable();


If you want to find out why this single line of code work, click this link:

http://tekfatliu.wordpress.com/2008/08/ … framework/

Because your primary picture is an image anchor, you shoud remove the href.
So when you click n drag the picture it doesn't redirect you to the picture itself.

Paste this complete code:
Code:
$$('div.imgblock200')[0].innerHTML = $$('div.imgblock200')[0].innerHTML.replace(/<a href(.+?)>/i,"");
$$('div.imgblock200')[0].makeDraggable();


One more example, this time we will alert all the span tag who has q class ( ex: ) within content_6 id or moreabout box. We don't even have to made the getelementbyClassName function.

Just copy n paste this code inside your JS file:
Code:
$$('#content_6 span.q').each(function(el, i){alert(el.innerHTML+"--"+el.nextSibling.nextSibling.innerHTML);});


THNX^^
Back to top Go down
https://xgdesignz.darkbb.com
breaker2

breaker2


Male
Number of posts : 137
Age : 28
Location : Sto. Nino,Meycauayan,Bulacan,PhiliPpInES
Job/hobbies : Surfing Net,Design layout,DoTa
Shoutout : =((........wawa tlga aq
<b><font color=blue>Reputation</col :
Make Primary Picture Dragable Left_bar_bleue0 / 1000 / 100Make Primary Picture Dragable Right_bar_bleue

<b><font color=red>Violation</color :
Make Primary Picture Dragable Left_bar_bleue0 / 1000 / 100Make Primary Picture Dragable Right_bar_bleue

Registration date : 2008-08-29

Make Primary Picture Dragable Empty
PostSubject: Re: Make Primary Picture Dragable   Make Primary Picture Dragable I_icon_minitimeFri Aug 29, 2008 11:09 am

can i see the preview?
Back to top Go down
http://profiles.friendster.com/52006747
 
Make Primary Picture Dragable
Back to top 
Page 1 of 1
 Similar topics
-
» How to make a WEBCLOCK
» How to make your own MP3 Skin
» Make Your Header Cool(css)
» make your boxes scrolable
» make your photo gallery (slideshow)

Permissions in this forum:You cannot reply to topics in this forum
XGDesignz :: Friendster Design and Development :: Friendster Tricks and Tutorials :: JavaScript-
Jump to: