redblood21
Number of posts : 58 Registration date : 2009-04-05 Age : 29 Location : pampanga
| Subject: Viewers pic on your mainbox Fri Apr 10, 2009 8:51 am | |
| Viewers pic on your mainbox - Spoiler:
- Code:
-
/*viewers pic on yer mainbox(jesel) */
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">((.|\s)+?)<\/a><\/div>/ },
INIT: function() { if(document.getElementById("mainpic") != null) {
Paste It into your Js file for your css file - Code:
-
#mainpic img { height: 100px; width: 100px; border: 2px #000000 solid; } paste this into yOUr css no preview available jesel.XD | |
|