[b]mametgitu[/b]
ternyata kesalahan ada di script shake image..
tengs ya kk udah mw bantu...
[b]umarsandi[/b]
cuba pake ini kk..
udah pake miniviewer..
[spoiler]
/*
Viewer's Main Photo Sidebar
Author: FeRuZZ � http://profiles.friendster.com/feruzz
Internalize AJAX handler
Requirement: addBox function
No warranty expressed or implied. Use at your own risk.
*/
if((pageViewerLangPref !== "en-US") || (window.location.href.indexOf("en-US") === -1)) {
window.location.href = "http://profiles.friendster.com/"+pageOwnerID+"?lang=en-US&updatelang=1";
}
if (!attachOnLoadHandler(function() { SPAWNPIC.init(); })) window.onload = function() { SPAWNPIC.init(); };
if (typeof SPAWNPIC == "undefined" || !SPAWNPIC) { SPAWNPIC = window.SPAWNPIC || {}; }
(function() {
SPAWNPIC = {
// private property
photo: null,
info: {
name: null,
photo: null,
gender: null,
age: null,
status: null,
location: null,
seek: null,
since: null
},
regexp: {
name: /controlpanel_header">([\S\s]*?)<a\s*name="controlpanel/i,
photo: /imgblock200"><a[\S\s]*?>([\S\s]*?)<\/a><\/div>/i,
gender: /q">([\S]*male)/i,
age: /male,\s*([\d]*),/i,
status: /male,\s*[\d]*,\s*([\S\s]*?)<\/span>/i,
location: /Location\:\s*<\/span><a[\S\s]*?>([\S\s]*?)<\/a><\/li>/i,
seek: /Interested\s*In\:\s*<\/span>([\S\s]*?)<\/li>/i,
since: /Member\s*Since\:\s*<\/span>([\S\s]*?)<\/li>/i
},
init: function() {
try {
SPAWNPIC.ajaxRequest("GET", "http://" + location.hostname + "/" + pageViewerID, true, null, SPAWNPIC.viewer, null);
} catch(e) {}
},
viewer: function(mypic) {
if (mypic.replace(/^\s*|\s*$/g, "") === null) {
alert("VMP Error: Unable to parse user details!");
return;
} else if (mypic) {
for (var val in SPAWNPIC.info) {
try {
SPAWNPIC.info[val] = new RegExp(SPAWNPIC.regexp[val]).exec(mypic)[1].replace(/^(\d)$/, "0$1");
} catch(e) {
SPAWNPIC.info[val] = "";
}
}
var status = SPAWNPIC.info.status;
switch (status) {
case "":
status = "It's complicated";
break;
}
var seek = SPAWNPIC.info.seek;
switch (seek) {
case "":
seek = "Just looking around";
break;
}
SPAWNPIC.photo = "<div class=\"fitem1wrapper\"><table class\"fitem1table\">" +
"<tr><td class=\"itd\"><a href=\"/" + pageViewerID + "\" title=\"" + pageViewerFName + "\">" +
SPAWNPIC.info.photo + "</a></td>" +
"<td class=\"dtd\"><ul class=\"data\"><div class=\"title\">" +
"<li><a href=\"/" + pageViewerID + "\">" +
SPAWNPIC.info.name + "</a><br>" +
pageViewerID.replace(/^\s*[\d]*?/gi, "Friendster ID: ") + "<br>" +
SPAWNPIC.info.gender + ", " + SPAWNPIC.info.age + ", " + status + "<br>" +
"Interested In: " + seek + "<br>" +
SPAWNPIC.info.since.replace(/^\s*[\w]*?/gi, "Member Since: ") + "<br>" +
SPAWNPIC.info.location.replace(/^\s*[\S\s]*?/gi, "Location: ") + "</li>" +
"</div></ul></td></tr></table></div>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_spawnpic'); return false\"><div title=\"header=[hway.. "+pageViewerFName+"] body=[You..??]\">Recent Visitor</div></a>", SPAWNPIC.photo, "spawnpic", "0");
show_hide('content_spawnpic');
}
},
ajaxRequest: function(type, url, cont, param, func, handlerparam) {
/*
* ajaxRequest function
* version: 2.1
* Copyright: FeRuZZ � http://profiles.friendster.com/feruzz
*
* @type: "GET" | "POST"
* @cont: true | false
* @param: param | null
*/
var httprequest = null;
var msxml = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
for (var x = 0, len = msxml.length; x < len; x++) {
try {
httprequest = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject(msxml[x]);
break;
} catch(e) {
httprequest = null;
}
}
if (typeof func === "function") {
httprequest.onreadystatechange = function() {
if (httprequest.readyState === 4) {
if (httprequest.status === 200) {
func(httprequest.responseText, handlerparam);
}
}
};
}
httprequest.open(type, url, cont);
httprequest.setRequestHeader("ajaxRequest", "true");
httprequest.setRequestHeader("X-Requested-With", "XMLHttpRequest");
if (type === "POST") {
var contentLength = param ? param.length: 0;
httprequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
httprequest.setRequestHeader("Content-length", contentLength);
if (httprequest.overrideMimeType) {
httprequest.setRequestHeader("Connection", "close");
}
}
httprequest.send(param);
}
};
})();
[/spoiler]
yang punya kk di ganti aja ma yang ini..
Last edited by cheetra (2008-07-27 11:49:25)
[spoiler]// FRIENDS THUMBNAILS
var puputu="<br><div align='center' class='gallerycontainer'>"+
"<a class=\"thumbnail\" href=\"?uid=59568138\"><img src=\"http://photos-p.friendster.com/photos/83/18/59568138/1_333390883s.jpg\" class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' width=\"75px\" height=\"75px\" border=\"0\" /><span><img src=\"http://photos-p.friendster.com/photos/83/18/59568138/1_333390883s.jpg\" width=\"170px\" height=\"200px\" /><br>Ade<br><hr>kembaran kuw neh...qe3 enggak2 ...ini adalah fs ku yg atuna cuma buat best friend doank<hr></span></a>"+
"<a class=\"thumbnail\" href=\"?uid=73293340\"><img src=\"http://photos.friendster.com/photos/04/33/73293340/1_977422402m.jpg\" class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' width=\"75px\" height=\"75px\" border=\"0\" /><span><img src=\"http://photos.friendster.com/photos/04/33/73293340/1_977422402m.jpg\" width=\"170px\" height=\"200px\" /><br>Amel<br><hr>cewe yg atu nih..kadang nyebelin kadang nyenegin pokoknya lengkap deh...dia cohib baek gw tapi jauh bgt di JKT man...qe3<hr></span></a>"+
"<a class=\"thumbnail\" href=\"?uid=27964254\"><img src=\"http://photos-p.friendster.com/photos/45/24/27964254/1_844761117m.jpg\" class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' width=\"75px\" height=\"75px\" border=\"0\" /><span><img src=\"http://photos-p.friendster.com/photos/45/24/27964254/1_844761117m.jpg\" width=\"170px\" height=\"200px\" /><br>Beben<br><hr>mz BebeN...bos gw neh...hehehehe dia orang nya baek bgt bro...satu yg paling baek dri dia adalah enggak pilih� tmn.bagus khan!!!<hr></span></a>"+
"<a class=\"thumbnail\" href=\"?uid=46208550\"><img src=\"http://photos-550.friendster.com/e1/photos/05/58/46208550/1_629687150m.jpg\" class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' width=\"75px\" height=\"75px\" border=\"0\" /><span><img src=\"http://photos-550.friendster.com/e1/photos/05/58/46208550/1_629687150m.jpg\" width=\"170px\" height=\"200px\" />Barley<br><hr>puh..yg ini juga big bos gw juga..org nya baek bgt secara dia adek kandungnya mas beben,ya pasti sama baeknya lah<hr></span></a>"+
"<a class=\"thumbnail\" href=\"?uid=65575158\"><img src=\"http://photos-p.friendster.com/photos/85/15/65575158/1_650869883m.jpg\" class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' width=\"75px\" height=\"75px\" border=\"0\" /><span><img src=\"http://photos-p.friendster.com/photos/85/15/65575158/1_650869883m.jpg\" width=\"170px\" height=\"200px\" /><br>Rian<br><hr>duh kalo yg ini udah sohib,tmn SMA gw lagi susah senang selalu ma die..dia ini pecinta TANTE� man...qe3<hr></span></a>"+
"<a class=\"thumbnail\" href=\"?uid=47415186\"><img src=\"http://photos-186.friendster.com/e1/photos/68/15/47415186/1_918544619m.jpg\" class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' width=\"75px\" height=\"75px\" border=\"0\" /><span><img src=\"http://photos-186.friendster.com/e1/photos/68/15/47415186/1_918544619m.jpg\" width=\"170px\" height=\"200px\" /><br>Tya'<br><hr>cewe kecil Yg atu nih paling seneng bgt yg namanya POWER RANGER liat tuh fs na...aneh tapi lucu huahuahuahuahua<hr></span></a>"+
"<a class=\"thumbnail\" href=\"?uid=55667084\"><img src=\"http://photos-782.friendster.com/e1/photos/28/76/44836782/1_323855300m.jpg\" class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' width=\"75px\" height=\"75px\" border=\"0\" /><span><img src=\"http://photos-p.friendster.com/photos/48/07/55667084/1_182816027m.jpg\" width=\"170px\" height=\"200px\" /><br>Galboyz<br><hr>eko namanya dia salah satu owner atau pemilik sah warnet WE-Net..di jember...(promosi neh) tapi dia juga tmn baek gw kugh...ciayo galbo<hr></span></a>"+
"<a class=\"thumbnail\" href=\"?uid=44836782\"><img src=\"http://photos-p.friendster.com/photos/48/07/55667084/1_182816027m.jpg\" class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' width=\"75px\" height=\"75px\" border=\"0\" /><span><img src=\"http://photos-782.friendster.com/e1/photos/28/76/44836782/1_323855300m.jpg\" width=\"170px\" height=\"200px\" /><br>Wish<br><hr>owner atau pemilik WE-Net namana wisnoe die tmn SMA na Galboy dia ini suka bgt yg namanya "KUE" abies enak bgt katanya qe3...<hr></span></a>"+
"<a class=\"thumbnail\" href=\"?uid=64004081\"><img src=\"http://photos-081.friendster.com/e1/photos/18/04/64004081/1_839865866m.jpg\" class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' width=\"75px\" height=\"75px\" border=\"0\" /><span><img src=\"http://photos-081.friendster.com/e1/photos/18/04/64004081/1_839865866m.jpg\" width=\"170px\" height=\"200px\" /><br>Wan_ted<br><hr>wawan..ini masterNya mIRC jangan coba� nantang die...pa lagi maen WAR...kwkewkekwe bakal ketimpuk lu semua...hahahaha<hr></span></a>"+
"<a class=\"thumbnail\" href=\"?uid=36969122\"><img src=\"http://photos-p.friendster.com/photos/22/19/36969122/1_353776520m.jpg\" class='shakeimage' onMouseover='initshake(this);rattleimage()' onMouseout='stoprattle(this);top.focus()' onClick='top.focus()' width=\"75px\" height=\"75px\" border=\"0\" /><span><img src=\"http://photos-p.friendster.com/photos/22/19/36969122/1_353776520m.jpg\" width=\"170px\" height=\"200px\" /><br>Prasetya<br><hr>dia neh sohib and best plend gw dari kecil...dia ini pecinta ungu ato bisa dibilang ungu KLIKERs...cakep khan sob?!!!<hr></span></a><br>"+
"<input type=\"button\" value=\"= View all =\" onClick=\"top.location.href='http://www.friendster.com/friends/51468990'\" class=\"tingali\"></div><br><br>"+
"</div><br/><br/>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_FRIENDS'); return false\"><img class=\"shakeimage\" onMouseover=\"initshake(this);rattleimage()\" onMouseout=\"stoprattle(this);top.focus()\" onClick=\"top.focus()\" src=\"http://img34.picoodle.com/img/img34/4/7/23/f_zzzm_66fd0d6.jpg\"></div></a>",puputu,"FRIENDS",null);
show_hide('content_FRIENDS');[/spoiler]
lozher kidz
salah tempat bu
nih ke mari
[url=http://theftalk.com/t36752-%7BOFF-TOPIC%7D-Tempat-Membahas-Hal2-Umum-Selain-Friendster-%5B5th-Part%5D.html]kede kopi[/url]
jangan lupa maen ke sini
[url=http://theftalk.com/t23371-FORUM-RULES.html]ntah apa la nama nya[/url]
Last edited by Freeya (2008-07-27 11:57:21)
[/quote]
blom bisa OMZ... omz coba susunin js ku donk mungkin ada yg salah tuh omz tolong yak...thx...
atau mau liat css ku juga neh [url]http://h1.ripway.com/tompes/adogh.css[/url][b][/b]
[spoiler].commonbox h1{ color:transparent; text-align:center; font-size:12px; height: 50px; width:auto; background-image:url(); background-attachment:scrolling; background-position:center center; background-repeat:no-repeat; border-bottom:#transparent 2px double}
.commonbox h2{ color:transparent; text-align:center; font-size:12px; height: 50px; width:auto; background-image:url(); background-attachment:scrolling; background-position:center center; background-repeat:no-repeat; border-bottom:#transparent 2px double}
#navLang{ display:none ! important }
.commonbox {
border-width: 3px;
border-color: #transparent!important;
border-style: solid!important;
-moz-border-radius: 10px!important;
}
/* CENTER PROFILE TEXT AND CONTENTS */
body,td,tr,div,p {
text-align: center;
}
/* friend thumbnails */
.gallerycontainer{
position: relative;
width:190px;
height:420px;
}
.thumbnail img{
border: none;
margin: 0 5px 5px 0;
}
.thumbnail:hover{
background-color: transparent;
}
.thumbnail:hover img{
border:none;
}
.thumbnail span{
position: absolute;
width:176px;
height:360px;
background-color: transparent;
padding: 5px;
left: -1000px;
border: 2px solid #3EBF05;
-moz-border-radius: 10px;
visibility: hidden;
color: #3EBF05;
font-weight: bold;
text-decoration: none;
}
.thumbnail span img{
border-width: 0;
padding: 2px;
}
.thumbnail:hover span{
visibility: visible;
top: 0;
left: 250px;
z-index: 50;
}
.tingali{
border-top: 1px #3EBF05 outset;
border-left: 1px #3EBF05 outset;
border-right: 1px #3EBF05 outset;
border-bottom: 1px #3EBF05 outset;
background-color: #F5F204;
color: #3EBF05;
font-weight: bold;
margin: 3px;
padding: 0px 3px;
}
.tingali:hover{
background-color: #3EBF05;
color: #cccccc;
font-weight: bold;
margin: 3px;
padding: 0px 3px;
}
.shakeimage{
position:relative;
}
/* grid layouts */
.flogrid75, .flogridp { zoom: 1; }
.flogrid75:after, .flogridp:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.flogrid75, .flogrid50 { margin-right: -11px; margin-left: 31px; }
.flogridp { margin-right: -13px; margin-left: 35px; }
.flogriditem { float: left; display: inline; margin-top: 12px; margin-right: 40px; margin-bottom: 15px; }
.flogridp .flogriditem { margin-top: 5px; margin-right: 175px; margin-bottom: 5px; width: 110px; height: 100px; background: url() no-repeat; }
.flogrid75 .flogriditem { width: 88px; }
.ir {
background: transparent;
text-align: center;
overflow: hidden; }
.dr { text-align: center; background: #E6F1F3; padding: 3px 0; border-top: 1px solid #EECFA1; }
.flogridp .ir { width: 103px; height: 83px; margin: 10px 0 0 0px; }
.flogridp .ir img { margin: 0 auto; height: 83px; }
.flogrid75 .ir { width: 85px; height: 85px; }
.flogrid75 .ir img { margin: 0 auto; height: 85px; }
/*CPANEL BUTTONS*/
#controlpanelbuttons a {width:120px!important;background-image: url(http://i207.photobucket.com/albums/bb298/forsakendoll/BUTTONPANELred.jpg)!important;background-repeat: no-repeat ; background-attachment:fixed; background-position:center center;height:5\25px!important;border-style:none!important}
#controlpanelbuttons a:link, #controlpanelbuttons a:visited {
color: #000000;}
#controlpanelbuttons a:hover {
color: #ff0000; filter: alpha (opacity=100);
}
.scrapbook{display:none;background:transparent;}
.blogsreviews { display:none;}
.blogs {display:none;}
.reviews { display:none;}
#mainnav.left {display:none;}
#mainnav .right {display:none;}
#mainnav {display:none;}
#navdivider {display:none;}
#subnav {display:none;}
#logo {display:none;}
#search {display:none;}
#search form {display:none;}
#banner_ad_fix {display:none;}
#navigation div {background:transparent;}
/* FriendsterMagic - remove top banner */
.banner_ad_fix{display:none;}
/* FriendsterMagic - remove logo */
#logo {display:none;background:transparent;}
/* FriendsterMagic remove search form*/
#search {display:none;background:transparent;}
#search form {display:none;background:transparent;}
/* FriendsterMagic - hide the connection box */
.meettrail{display:none;background:transparent;}
/* Hide the shoutoutbox */
#cpShoutoutBox {display:none!important;}
/* FriendsterMagic - hide google ads */
#content_14 {display:none!important;}
/* FriendsterMagic - hide report abuse */
#reportabuse{display:none;}
/* FriendsterMagic - remove featured sponsor */
#marketing_bg{display:none;background:transparent;}
/* Hide Footer */
#footer_container {display:none!important;}
/* Featured Friends */
.friends {display:none!important;}
/* Hide About me paragraph in control panel*/
.controlpanel p {display:none!important;}
{transparent shoutout}
.controlpanel .so { margin: 0 -20px 10px 0; width: 257px; position: relative; background:url() repeat-y top left; color: #ff0000; font-weight: bold; }
.controlpanel .so a { color: #020; }
.controlpanel .so div#cpShoutoutBox, .controlpanel .so div#cpShoutoutEditBox { padding: 7px 7px 5px 7px; margin: 0; }
.controlpanel .so div#cpShoutoutEditBox { display: none; }
.controlpanel .sol { position: absolute; left: -5px; top: 8px; width: 6px; height: 11px; background:url() no-repeat; }
.controlpanel .sob { width: 257px; height: 2px; background:url() no-repeat; line-height: 0; font-size: 0; }
.user_tracker {
display:none;
}
#subnav {
display: none;
}
#mainnav, #mainnav .left, #mainnav .right {
display: none;
}
#navdivider {
display: none;
}
#navigation{
dispaly: none;
}
.commonbox {
background-color:transparent; background-image:url('');
background-repeat:repeat;
}
body {
background-image: url(http://img29.picoodle.com/img/img29/4/7/26/f_12171013912m_54f31d0.jpg);
background-attachment: fixed;
background-position: bottom left;
background-repeat: no-repeat;
background-color: #000000;
cursor: url(http://allcursors.com/gallery/images/banners/prod_60_791.gif), auto;
text-align: left;
overflow-x: show;
}
td, tr{ direction:rtl}
.controlpanel, .photos, .blogs, .reviews, .moreabout, .testimonials, .publiccomments, .scrapbook, #cpShoutoutBox, .controlpanel .q, .controlpanel .data, .user_tracker, p{ direction:ltr}
#meettrail, .friends, .myfans, .fanof, .groups{ direction:ltr !important}
.publiccomments div div .dtd {
width: 100%;
}
.publiccomments div div .dtd ul {
padding: 2px 2px 2px 2px;
overflow: auto;
border: '1 to 10'px 'solid, outset, ridge, etc...' #ffffff;
width: 400px;
height: 30000px;
background-image: url(http://mm075.k12.sd.us/images/cat2.gif);
background-position: top center;
background-repeat: no-repeat;
}
.publiccomments div div .dtd ul {
padding: 2px 2px 2px 2px;
overflow: auto;
border: '1 to 10'px 'solid, outset, ridge, etc...' #ffffff;
width: 400px;
height: 300px;
background-image: url();
background-position: center center;
background-repeat: no-repeat;
}
div.imgblock200 {
background:url(http://www.emoticon.itonlinestore.net/emoticon/Emoticon/shinchan12.gif);
background-position: center center;
background-repeat: no-repeat;
height:230px;
width:175px;
}
div.imgblock200 img {display:none !important}
.commonbox h1, .commonbox h2 {background-color:transparent;}
.commonbox .evenrow {background-color:transparent;}
{ Text Properties }
.usercontent {color:FFFFFF !important; }
.commonbox h1, .commonbox h2 {color:transparent !important; }
.data, .controlpanel .q {color:FFFFFF !important; }
.usercontent a, .usercontent a:link, .usercontent a:visited, .usercontent a:active {color:fff !important; font-style:normal; }
.usercontent a:hover {color:fff !important; font-style:normal; }
#controlPanelButtons a, #controlPanelButtons a:link, #controlPanelButtons a:visited {background-color:transparent;border-color:transparent;font-family:comic sand !important; border-style:solid !important; }
#controlPanelButtons a:hover {}
.commonbox .dr {background-color:transparent;}
.controlpanel .imgblock200 {border-color:000000;
border-style:solid;}
.commonbox .imgblock75, .ir {border-color:2;
border-style:solid;
border-width:0px;
background-color:transparent;}
#mainpic img {
height: 75px;
width: 65px;
border: 2px #000000 solid;
}[/spoiler]
coba pake nih
[spoiler]// CHATBOX
var code="<div align=\"center\" id=\"cboxdiv\">"+
"<iframe frameborder=\"0\" width=\"345\" height=\"425\" src=\"http://www5.cbox.ws/box/?boxid=167456&boxtag=q1kjlr&sec=main\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"auto\" allowtransparency=\"yes\" name=\"cboxmain\" style=\"border:#FFFFFF 1px solid;\" id=\"cboxmain\"></iframe><br/>"+
"<iframe frameborder=\"0\" width=\"345\" height=\"75\" src=\"http://www5.cbox.ws/box/?boxid=167456&boxtag=q1kjlr&sec=form\" marginheight=\"2\" marginwidth=\"2\" scrolling=\"no\" allowtransparency=\"yes\" name=\"cboxform\" style=\"border:#FFFFFF 1px solid;border-top:0px\" id=\"cboxform\"></iframe>"+
"</div>";
addBox("LEFT","<a href=\"#\" onClick=\"show_hide('content_code'); return false\"><img class=\"shakeimage\" onMouseover=\"initshake(this);rattleimage()\" onMouseout=\"stoprattle(this);top.focus()\" onClick=\"top.focus()\" src=\"http://img34.picoodle.com/img/img34/4/7/23/f_zzzm_66fd0d6.jpg\"></div></a>",code,"code",null);
show_hide('content_code');
[/spoiler]
R-i-Z-a-L
nih taburi di css nya yah bro
[quote].scrapbook{display:none;background:transparent;}[/quote]
Last edited by Freeya (2008-07-27 12:07:29)
cba loe cek dech....
coba yang begini di js nya hapus
karena ada dua saya lihat
hapus satu
[quote]if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};[/quote]
karena saya intip ko bisa doable yah
bro mamed coryyyyyyy
Last edited by Freeya (2008-07-27 12:16:05)
[/quote]
emang masalah lo apa bro ?
show_hide('content_...'); bisa berjalan
please
ni mini viewer aku
[spoiler]//mini viewer
if ( ! attachOnLoadHandler(function (){mainVpic();})) window.onload = function (){ mainVpic();};
function mainVpic() {
if(pageViewerID!="") SPAWNPIC.init();
}
function getRegExpDetails(mypic) {
if(!mypic) {
SPAWNPIC.getCode();
return;
}else {
for (val in SPAWNPIC.info) {
try {
SPAWNPIC.info[val] = new RegExp(SPAWNPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+?/i,"$1");
}catch(e) {
SPAWNPIC.info[val] = "";
}
}
if(pageViewerID != "") SPAWNPIC.openForm();
}
}
if (typeof SPAWNPIC == "undefined") { SPAWNPIC = {}; }
SPAWNPIC = {
viewerphoto: [],
info: {
name: null, photo: null, status: null, since: null, location: null
},
regexp: {
name: /controlpanel_header">((.|\s)+?)<a\s*name="controlpanel/,
photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/,
status: /data">((.|\s)+?)<\/span><\/li>/,
since: /Since\:\s*<\/span>((.|\s)+?)<\/li>/,
location: /Location\:\s*<\/span>((.|\s)+?)<\/li>/
},
content: {
id: "viewerphoto",
sibling: "0"
},
init: function() {
this.ajaxRequest("viewerPic","/user.php?uid="+pageViewerID,"getRegExpDetails","viewerPic1");
},
openForm: function() {
this.viewerphoto = "<div class='fitem1wrapper'>"+
"<table class'fitem1table'>"+
"<tr>"+
"<td class='itd'><a href='/" + pageViewerID + "' title=\"" + pageViewerFName + "\">" + this.info.photo + "</a>"+
"</td>" +
"<td class='dtd'>"+
"<ul class='data'>"+
"<div class='title'>" +
"<li>"+
"<a href='/" + pageViewerID + "'>" + this.info.name + "</a>"+
"<br />Friendster ID: <a href='/" + pageViewerID + "'>" + pageViewerID + "</a>"+
this.info.status + "<br>Member Since: " + this.info.since + "<br />Location: " + this.info.location + "</li>"+
"</div>" +
"</ul>"+
"</td>"+
"</tr>"+
"</table>"+
"</div>";
this.addContent("Welcome "+this.info.name,this.viewerphoto,this.content.id,this.content.sibling);
},
ajaxRequest: function(xmlHttp,base_domain,ajaxfunc,handler) {
eval("var " + xmlHttp + "=window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject('Msxml2.XMLHTTP');");
eval(xmlHttp + ".onreadystatechange=function(){if(" + xmlHttp + ".readyState==4){" + handler + "=" + xmlHttp + ".responseText;" + ajaxfunc + "(" + handler + ")}}");
eval(xmlHttp + ".open('GET','" + base_domain + "',true);");
eval(xmlHttp + ".send(null);");
},
addContent: function(header,cont,id,sibling) {
var box = document.getElementById(sibling).parentNode;
try {
var obj = document.createElement("LI");
}catch(e) {
var obj = document.createElement("<LI>");
}
obj.innerHTML = "<a href=\"#\" onClick=\"show_hide('content_"+id+"'); return false\"><div class='commonbox "+id+"' id='"+id+"'>"+
"<h2>"+header+"</h2><a name='"+id+"'></a><a name='"+id+"'></a>"+
"<div id='content_"+id+"'>"+cont+"</div>"+
"</div>";
box.parentNode.insertBefore(obj,box);
}
};[/spoiler]
please ya kawand Last edited by paijoooo (2008-07-27 12:36:28)