
johman hartzell
Retired Moderator
>: I LOVE YOU momie che!
Posts: 772
Age: 20
Location: @echo off del system32
Country:
Reg-Date: 2008-09-04
Forum Warning:
Contribution:
|
Subject: FLOATING IMAGE PLUS VISITOR's PIC Fri Sep 05, 2008 5:12 pm |
|
|
FLOATING IMAGE PLUS VISITOR's PIC... CREDIT: DynmicDrive ..STORMPAGES for my host..LOL PREVIEW: http://profiles.friendster.com/14356592screen shot ?  JS CODE jst edt d bold letters use yer "CS" | Spoiler: | | | var currentTime = new Date(); var hours = currentTime.getHours(); var minutes = currentTime.getMinutes();
if (minutes < 10) minutes = "0" + minutes; var jamenit = (hours + ":" + minutes + " ");
if(hours > 11){ var ampm = ("PM"); } else { var ampm = ("AM"); }
dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><b><font color='red'>Hi..</b></font><br><div id='mainpic'></div><br><img src='url pic'><br><img src='url pic'><br><b><font color='red'>Logged in as</font> <font color='white'> "+pageViewerFName+" </font></b><br>"+ "<b><font color='red'>Last visit</font><font color='white'>: Today "+jamenit+ampm+" </font></b><br></div>";
flow=document.getElementById('flo_wrapper'); river=document.createElement("div"); river.innerHTML=dude; flow.parentNode.insertBefore(river,flow);
//in this part you can change it into "frombottom" or "fromtop" var verticalpos="frombottom"
function BoyantDiv() { var startX = 15; var startY = 170; function ml(id) {
if (document.getElementById) { var wek=document.getElementById(id); } else if (document.all) { var wek=document.all[id]; } else { var wek=document.layers[id]; }
if(document.layers) { wek.style=wek; } wek.sP = function(x,y) {shino(x,y);}; function shino(x,y) { wek.style.left=x; wek.style.top=y; } wek.x = startX; if (verticalpos=="fromtop") { wek.y = startY; } else{ if (navigator.appName.indexOf("Netscape") != -1) { wek.y = pageYOffset + innerHeight; } else { wek.y = document.body.scrollTop + document.body.clientHeight; } wek.y -= startY; } return wek; } window.stayTopLeft = function () {boyant();}; function boyant() { if (verticalpos=="fromtop"){
if (navigator.appName.indexOf("Netscape") != -1) { var tenten = pageYOffset; } else { var tenten = document.body.scrollTop; }
ftlObj.y += (tenten + startY - ftlObj.y)/8; } else{
if (navigator.appName.indexOf("Netscape") != -1) { var tenten = pageYOffset + innerHeight; } else { var tenten = document.body.scrollTop + document.body.clientHeight; } ftlObj.y += (tenten - startY - ftlObj.y)/8; } ftlObj.sP(ftlObj.x, ftlObj.y); wakoko=setTimeout("stayTopLeft()", 50); } ftlObj = ml("divStayTopLeft"); stayTopLeft(); } BoyantDiv();
|
hrs the code for Yer css Box..jst copy and paste it bottom part of ur css box
| Spoiler: | | | #mainpic img { height: 75px; width: 65px; border: 2px #000000 solid; } |
if u want to add vistors picture...hrs d code..
| Spoiler: | | | /* VISITOR PICTURE*/
if (!attachOnLoadHandler(function(){viewer();})) window.onload = function(){viewer();}; function viewer() { if(pageViewerID!="") VIEWERPIC.init(); }
function spawnImage(mypic) { if (!mypic) { VIEWERPIC.getCode(); return; }else { for (val in VIEWERPIC.info) { try { VIEWERPIC.getPhoto = new RegExp(VIEWERPIC.regexp[val]).exec(mypic)[1].replace(/(\d)+? /i, "$1"); document.getElementById("mainpic").innerHTML = VIEWERPIC.getPhoto; } catch(e) { VIEWERPIC.getPhoto = ""; document.getElementById("mainpic").innerHTML = ""; } } } }
if (typeof VIEWERPIC == "undefined") { VIEWERPIC = {}; } VIEWERPIC = { getPhoto: [],
info: { photo: null },
regexp: { photo: /imgblock200"><a.*?>((.|\s)+?)<\/a><\/div>/ },
init: function() { if(document.getElementById("mainpic") != null) { this.ajaxRequest("/user.php?uid="+pageViewerID,"spawnImage ",null); } },
ajaxRequest: function(url,ajaxfunc,handler) { if(handler) { handler = ","+handler; } else handler = "";
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP"); if(ajaxfunc) { eval("httprequest.onreadystatechange=function(){if (httprequest.readyState==4) {"+ajaxfunc+"(httprequest.responseText"+handler+");}}"); } httprequest.open('GET', url, true); httprequest.send(null); } }; |
some Instrctions and answrd question
read this carefully
| Spoiler: | | | PART OF THE CODE:TRY to LOOK at dis in d FLOATING IMAGE CODE u have to edit the bold letters
| Quote: | | dude="<div id='divStayTopLeft' style='position:absolute;z-index:50;'><b><font color='red'>Hi..</b></font><br><div id='mainpic'></div><br><img src='url pic'><br><img src='url pic'><br><b><font color='red'>Logged in as</font> <font color='white'> "+pageViewerFName+" </font></b><br>"+ |
wen edting d code..use yer notepad...
wen edting is done,,,pls save it as filename.js (filename watever u want but be sure .js )
ul need a hosting site...to host yer..js file...
exmple of hosting site .....fileave ,ripway,stormpages......ayt..
u have to upload ur js file ...
wen uploading is done....
jst copy d DIRECT LINK of yer js file
den paste yer direct link
| Quote: | | <script src="DIRECTLINKHERE"></script> |
jst pste yer code to who i want to meet or about me section
question: the code is not working?
u have oder js file,u have to compile dt...u may use js injection...or use externals...
ur pic doesnt appear?
yer url pic is wrong...change it...u may use photbucket as yer host for image
wen yer floating imge appers on bottom part? jst chane "fromtop"
jst find this in yer code
| Quote: | //in this part you can change it into "frombottom" or "fromtop" var verticalpos="frombottom" |
by JOHMAN :) |
Last edited by johman hartzell on Sun Sep 28, 2008 8:18 am; edited 3 times in total
|
|

Admin
Administrator
>: I love HCG!
Posts: 195
Country:
Reg-Date: 2008-09-03
Forum Warning:
Contribution:
|
|

johman hartzell
Retired Moderator
>: I LOVE YOU momie che!
Posts: 772
Age: 20
Location: @echo off del system32
Country:
Reg-Date: 2008-09-04
Forum Warning:
Contribution:
|
Subject: Re: FLOATING IMAGE PLUS VISITOR's PIC Fri Sep 05, 2008 5:34 pm |
|
|
|
|
|

edz..lynne
Promoter
>: GOD gave his son...
Posts: 543
Age: 85
Location: sUmWEr ovER d raInbOW
Mood: Cheerful
Country:
Reg-Date: 2008-09-05
Forum Warning:
Contribution:
|
|

johman hartzell
Retired Moderator
>: I LOVE YOU momie che!
Posts: 772
Age: 20
Location: @echo off del system32
Country:
Reg-Date: 2008-09-04
Forum Warning:
Contribution:
|
Subject: Re: FLOATING IMAGE PLUS VISITOR's PIC Sat Sep 06, 2008 11:40 pm |
|
|
..mah name is JOhman hahaha LOL btw...yer welcum!!!
|
|

edz..lynne
Promoter
>: GOD gave his son...
Posts: 543
Age: 85
Location: sUmWEr ovER d raInbOW
Mood: Cheerful
Country:
Reg-Date: 2008-09-05
Forum Warning:
Contribution:
|
|

aziz21
HCG Member
>: I love HCG!
Posts: 28
Age: 19
Location: makati
Reg-Date: 2008-09-08
Forum Warning:
Contribution:
|
Subject: weeeee Mon Sep 08, 2008 8:15 pm |
|
|
ang galing galing hhahaha now i enjoy FS more hahah tanks johnman^_^
_________________ [embed-flash(width,height)]caziz25_28[/embed-flash][embed-flash(width,height)]
|
|

johman hartzell
Retired Moderator
>: I LOVE YOU momie che!
Posts: 772
Age: 20
Location: @echo off del system32
Country:
Reg-Date: 2008-09-04
Forum Warning:
Contribution:
|
Subject: Re: FLOATING IMAGE PLUS VISITOR's PIC Mon Sep 08, 2008 8:37 pm |
|
|
aryt...good!!! jst enjoi...harharhar :lol!:
|
|

aurelio
HCG Wizard
>: I love HCG!
Posts: 59
Age: 14
Location: Sa Tabi Tabi Lang poh.. hehehe
Reg-Date: 2008-09-08
Forum Warning:
Contribution:
|
Subject: Re: FLOATING IMAGE PLUS VISITOR's PIC Tue Sep 09, 2008 12:03 am |
|
|
ThanksForTheShare Again Thanks For The Share
Last edited by aurelio on Tue Sep 09, 2008 12:04 am; edited 1 time in total (Reason for editing : Im Wrong.. !)
|
|
BUBBLES
HCG Member
>: I love HCG!
Posts: 11
Age: 18
Location: caloocan / fairview
Reg-Date: 2008-09-09
Forum Warning:
Contribution:
|
Subject: Re: FLOATING IMAGE PLUS VISITOR's PIC Tue Sep 09, 2008 9:15 am |
|
|
| Quote: | there's no need to edit ??? or generate ?? i will just put in moi js file ?? |
edited by johman hartzell
|
|