friendsterTalk - Friendster Forum

friendsterTalk - Friendster Forum

Welcome guest! Please Login or Register.

#1  2008-01-28 07:39:41

blurrycloud
» Moderator
blurrycloud's display avatar
[ CerberuZ ]
Class-S
Location: Aikhee's Heaven
Registered: 2007-09-07
Posts: 2428
Reputation: 66

Drop In Content Trick

Sorry guys.. I've been bz this past few days... because i need to focus on some personal things..
If your interested... Grab this tweak now..  :lol:  :lol:

Ok the tweak is called Drop In Content...
And Once Again All the Credits to Cip  and Dynamic Drive :wow:
I edit some part of it and mixed it up with my addbox function so that it would work on Multiply


Let's Start
1st Code..( ADDBOX FUNCTION ) Place This At the top of your Js Codes...

Code:

function addBox (type,head,htm,id,sibling) {
//by blurrycloud multiply version 2008-3000
//credits to marfillaster friendster version
//type "top" | "bottoml" | "bottomr" | "siderail"
//head header string
//htm innerHTML string
//id css_id string

/* Available default Siblings
Coming Soon
*/

    try {
        var br=document.createElement("li");
    } catch(e) {
        var br=document.createElement("<br>");
    }
    if(type=="top") {
        var ul=document.getElementById("mainbox_1");
        htm="<div class='itemboxsub'>"+htm+"</div>";
    }
     else if(type=="bottomr") {
         var ul=document.getElementById("mainbox_4");
         
    } 
    else if(type=="siderail") {
         var ul=document.getElementById("rail");
    } 
    else var ul=document.getElementById("mainbox_3");
   
    br.innerHTML="<br><div id='"+id+"' class='itemboxsub "+id+"'>"+
                    "<h2>"+head+"</h2>"+
                    "<div id='content_"+id+"'>"+htm+
                    "</div>"+
                    "</div>";
                   
    if(sibling==null) ul.appendChild(br);
    else {
        sibling=document.getElementById(sibling);
        ul.insertBefore(br,sibling);
    }
}

if (!addEvent(function() { onPageLoad();})) { window.onload = function() { onPageLoad();};}

function onPageLoad() {

//OTHER BOXES HERE

var dropin ="<div align=\"center\"><center><input type=\"button\" value=\"Drop\" onClick=\"javascript:redo()\"></center></div>";
addBox("siderail","<font size =2px>Drop Me</font>",dropin,"dropin");
}

If you already have the addbox function just place this code inside your Onload handler
:arrow:

var dropin ="<div align=\"center\"><center><input type=\"button\" value=\"YOUR BUTTON LABEL\" onClick=\"javascript:redo()\"></center></div>";
addBox("siderail","YOUR TITLE HERE",dropin,"dropin");

2nd Code(The Function).. place it under your js code

/***********************************************
* Drop-in content box: By Dynamic Drive
* For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
* This credit MUST stay intact for use
* Edited by: cip6192
* Multiply Version: blurrycloud

***********************************************/

document.write('<div id="dropin" style="position:absolute;visibility:hidden;left:250px;top:50px;width:???px;height:auto;background-color:transparent">');
document.write('<div class="drag" style="background-color: transparent;background-image:url(http://h1.ripway.com/cip619/dizzlerlayo … tle_bg.jpg);background-position:top center;background-attachment:scroll;background-repeat: repeat-x;border: 1px inset #1a1a1a;color:#000000;font-size:9pt;font-weight:bold;text-align: right;"> [Header Of Your  Drop Box]');
document.write('<h2 id="header_drop"><a href="#" onClick=javascript:toggle3("content_dropin");><font color="#ffffff" size="2"><b>[Max/Min]</b></font> </a><a href="#" onClick="dismissbox();return false"><font color="#ffffff" size="2"> [Close Box]</b></font> </a></h2>');
document.write('<div align="center" id="content_dropin" >PUT THE THING HERE</div>');
document.write('</div>');
document.write('</div>');
document.write('</div>');

//Specify rate of display (1/freq)
var freq=100

var random_num=Math.floor(Math.random()*freq)
if (random_num==0)
window.onload=initbox
var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"

var bouncelimit=32 //(must be divisible by 8)
var direction="up"

function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossobj.top=scroll_top-250+calunits
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}

function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40+calunits
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}
function redo(){
bouncelimit=32
direction="up"
initbox()
}
function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
/***********************************************
* Drag and Drop Script: © Dynamic Drive (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
* Edited by: cip6192
* Multiply Version: blurrycloud
***********************************************/

var dragobject={
z: 0, x: 0, y: 0, offsetx : null, offsety : null, targetobj : null, dragapproved : 0,
initialize:function(){
document.onmousedown=this.drag
document.onmouseup=function(){this.dragapproved=0}
},
drag:function(e){
var evtobj=window.event? window.event : e
this.targetobj=window.event? event.srcElement : e.target
if (this.targetobj.className=="drag"){
this.dragapproved=1
if (isNaN(parseInt(this.targetobj.style.left))){this.targetobj.style.left=0}
if (isNaN(parseInt(this.targetobj.style.top))){this.targetobj.style.top=0}
this.offsetx=parseInt(this.targetobj.style.left)
this.offsety=parseInt(this.targetobj.style.top)
this.x=evtobj.clientX
this.y=evtobj.clientY
if (evtobj.preventDefault)
evtobj.preventDefault()
document.onmousemove=dragobject.moveit
}
},
moveit:function(e){
var evtobj=window.event? window.event : e
if (this.dragapproved==1){
this.targetobj.style.left=this.offsetx+evtobj.clientX-this.x+"px"
this.targetobj.style.top=this.offsety+evtobj.clientY-this.y+"px"
return false
}
}
}

dragobject.initialize()

:arrow: Just replace the PUT THE THING HERE with your object... eg., videos, mp3, chatbox, jpg images, gif images etc etc etc...

Reminder: If your object have double quotes.. leave it as it is...  (":thumbsup:
and if it have single quote replace it with double quotes.. (') to (") :thumbsup:

Ex:

<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/j_Ajo6fTdew&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/j_Ajo6fTdew&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>

:arrow: LEAVE IT AS IT IS...  :wallbash:  :wallbash:  :wallbash:

For The CSS
Go Here: http://multiply.com/setup/pages/upload-css
Then Insert this code...

Code:

.drag{
position:relative;
cursor:hand;
z-index: 100;
}
#header_drop {
  background-color: transparent;
  background-image:url(http://h1.ripway.com/cip619/dizzlerlayoutfiles/header_bg.gif); 
  background-position:center center; 
  background-attachment:scroll! important; 
  background-repeat:repeat; 
  border-color:transparent; 
  border-top-width: 1px! important; 
  border-bottom-width: 1px! important; 
  border-left-width: 1px! important; 
  border-right-width: 1px! important; 
  border-style: inset! important; 
  border-color:#1a1a1a! important;
}
#content_dropin {display: none;}

That's it and your done.... More Tweaks to Come  :wow:   :lol:  :lol:

IMG PREVIEW :arrow:
Live Preview : twistedcloud.multiply.com

PS: You can also drag this object anywhere you like .. LMAO  :cool:  :cool:

Last edited by blurrycloud (2008-01-28 07:53:01)


When you're poor but in love, you're happier than a loveless billionair

#2  2008-02-11 20:35:50

kangkong10
» Promoter
kangkong10's display avatar
Registered: 2008-01-09
Posts: 1289
Reputation: 13

Re: Drop In Content Trick

be the first coment.. thanks for sharing...


elow guys, I'm Back again

#3  2008-02-29 19:33:18

usercp12
» FriendsterTalker
Registered: 2008-02-29
Posts: 111
Last visit: 2008-04-30
Reputation: ~

Re: Drop In Content Trick

now i do it..
is now working

#4  2008-02-29 20:03:28

kangkong10
» Promoter
kangkong10's display avatar
Registered: 2008-01-09
Posts: 1289
Reputation: 13

Re: Drop In Content Trick

/\ avoid double posting pls read the Ftalk rules first..
bydway thanks for sharing.


elow guys, I'm Back again

#5  2008-04-08 08:26:09

retardedbords
» FriendsterTalker
retardedbords's display avatar
Location: Bacolod City
Registered: 2008-04-08
Posts: 144
Last visit: 2008-08-16
Reputation: 1
Friendster

Re: Drop In Content Trick

usercp12 wrote:

:crybaby::crybaby: i can't do it, won't work.

avoid double posting..read the rules


#6  2008-06-13 10:55:01

fsQueen
» FriendsterNewbie
fsQueen's display avatar
i dont deserve this alias
Alchemy Explicit AE
Location: GSC, Phil.
Registered: 2008-05-23
Posts: 82
Last visit: Today
Reputation: ~
Friendster

Re: Drop In Content Trick

don't get it. what's that onload handler? :(


Last edited by fsQueen (2008-06-13 11:05:26)




this one is made by:
me!

Moderated by Ephemeral, blurrycloud, dale

Board footer

FriendsterTalk is not affiliated with Friendster.com
Copyright © 2002–2008 PunBB

[ 17 queries - 0.467 second ]

Pay Per Click Ads by pay per click advertising by Kontera

FriendsterTalk.com x

Welcome to FriendsterTalk! You'll need to login in order to fully use all the features and view all the sections of this site.

Please register if you're not yet a member. =)