<?php header("Content-type: text/javascript"); ?>
window.onload=init;
var w=screen.width;
var h=screen.height;
var title="";
var link="";
function init() {
title=document.title;
link=document.URL;
}
function phpOnlineBookmarkingClass(url){
link=encodeURIComponent(link);
title=encodeURIComponent(title);
var url=url.replace('{PERMALINK}',link);
var url=url.replace('{TITLE}',title);
openWindow(url);
}
function openWindow(url) {
window.open(url,'PhpOnlineBookmarkingClass','width='+w+',height='+h+',menubar=yes,status=yes,location=yes,toolbar=yes,scrollbars=yes');
}
|