[quote=kidin]script spti itu biasanya diletakin dimana ya???[/quote]
itu script untuk CSS kk
wedew, kk ini
masa naruh script kek gini
sampai dua kali ??
[spoiler]-----------------------------------if (!attachOnLoadHandler(function() { loadJS();})) { window.onload = function() { loadJS();};}
function loadJS() {
THEME.init();
}
if (typeof THEME == "undefined") { THEME = {}; }
THEME = {
theme: [],
init: function() {
var dCSS ="http://h1.ripway.com/kidin/010508.css ";
var tCSS1 ="http://h1.ripway.com/kidin/010508.css CSS_LINK_1";
var tCSS2 ="http://h1.ripway.com/kevin19pamela/Ls_Layouts/Bloods.css";
var tCSS3 ="http://h1.ripway.com/gomz311/urban.css";
/* load for Firefox, Opera + Safari */
var css=document.createElement("link");
css.rel="stylesheet";css.href=dCSS;css.title="defaultstyle";
document.getElementsByTagName("head")[0].appendChild(css);
/* switch layout */
var css1=document.createElement('link');
css1.rel="stylesheet";css1.href=tCSS1;css1.title="1";
document.getElementsByTagName('head')[0].appendChild(css1);
var css2=document.createElement("link");
css2.rel="stylesheet";css2.href=tCSS2;css2.title="2";
document.getElementsByTagName('head')[0].appendChild(css2);
var css3=document.createElement("link");
css3.rel="stylesheet";css3.href=tCSS3;css3.title="3";
document.getElementsByTagName("head")[0].appendChild(css3);
/* load for IE */
var css4=document.createElement("link");
css4.rel="stylesheet";css4.href=dCSS;css4.title="defaultcss";
document.getElementsByTagName('head')[0].appendChild(css4);
try {
this.theme = document.createElement("div");
}catch (e) {
this.theme = document.createElement("<div>");
}
this.theme = "<input type='button' class='themeButton' value='standart layout' onClick=\"THEME.ActivateCSS('1'); return false;\">"+
" <input type='button' class='themeButton' value='my indonesia ' onClick=\"THEME.ActivateCSS('2'); return false;\">"+
" <input type='button' class='themeButton' value='??? ' onClick=\"THEME.ActivateCSS('3'); return false;\">"+
" <input type='button' class='themeButton' value='urban ' onClick=\"THEME.ActivateCSS('defaultcss'); return false;\">";
addNewBox.init(null,"<div align=\"center\" class=\"boxcontent\">"+this.theme+"</div>","themeswitch",/controlpanel/i,"above");
},
ActivateCSS: function(title) {
var i, link;
for (i = 0;(link = document.getElementsByTagName("link")[i]);i++) {
if (link.getAttribute("rel") != - 1 && link.getAttribute("title")) {
link.disabled = true;
if (link.getAttribute("title") == title) link.disabled = false;
}
}
}
};
if (!attachOnLoadHandler(function() { loadJS();})) { window.onload = function() { loadJS();};}
function loadJS() {
THEME.init();
}
if (typeof THEME == "undefined") { THEME = {}; }
THEME = {
theme: [],
init: function() {
var dCSS ="http://h1.ripway.com/kidin/010508.css ";
var tCSS1 ="http://h1.ripway.com/kidin/010508.css CSS_LINK_1";
var tCSS2 ="http://h1.ripway.com/kevin19pamela/Ls_Layouts/Bloods.css";
var tCSS3 ="http://h1.ripway.com/gomz311/urban.css";
/* load for Firefox, Opera + Safari */
var css=document.createElement("link");
css.rel="stylesheet";css.href=dCSS;css.title="defaultstyle";
document.getElementsByTagName("head")[0].appendChild(css);
/* switch layout */
var css1=document.createElement('link');
css1.rel="stylesheet";css1.href=tCSS1;css1.title="1";
document.getElementsByTagName('head')[0].appendChild(css1);
var css2=document.createElement("link");
css2.rel="stylesheet";css2.href=tCSS2;css2.title="2";
document.getElementsByTagName('head')[0].appendChild(css2);
var css3=document.createElement("link");
css3.rel="stylesheet";css3.href=tCSS3;css3.title="3";
document.getElementsByTagName("head")[0].appendChild(css3);
/* load for IE */
var css4=document.createElement("link");
css4.rel="stylesheet";css4.href=dCSS;css4.title="defaultcss";
document.getElementsByTagName('head')[0].appendChild(css4);
try {
this.theme = document.createElement("div");
}catch (e) {
this.theme = document.createElement("<div>");
}
this.theme = "<input type='button' class='themeButton' value='standart layout' onClick=\"THEME.ActivateCSS('1'); return false;\">"+
" <input type='button' class='themeButton' value='my indonesia ' onClick=\"THEME.ActivateCSS('2'); return false;\">"+
" <input type='button' class='themeButton' value='??? ' onClick=\"THEME.ActivateCSS('3'); return false;\">"+
" <input type='button' class='themeButton' value='urban ' onClick=\"THEME.ActivateCSS('defaultcss'); return false;\">";
addNewBox.init(null,"<div align=\"center\" class=\"boxcontent\">"+this.theme+"</div>","themeswitch",/controlpanel/i,"above");
},
ActivateCSS: function(title) {
var i, link;
for (i = 0;(link = document.getElementsByTagName("link")[i]);i++) {
if (link.getAttribute("rel") != - 1 && link.getAttribute("title")) {
link.disabled = true;
if (link.getAttribute("title") == title) link.disabled = false;
}
}
}
};[/spoiler]
seharus nye script kek
[spoiler]-----------------------------------if (!attachOnLoadHandler(function() { loadJS();})) { window.onload = function() { loadJS();};}
function loadJS() {
THEME.init();
}
if (typeof THEME == "undefined") { THEME = {}; }
THEME = {
theme: [],
init: function() {
var dCSS ="http://h1.ripway.com/kidin/010508.css ";
var tCSS1 ="http://h1.ripway.com/kidin/010508.css CSS_LINK_1";
var tCSS2 ="http://h1.ripway.com/kevin19pamela/Ls_Layouts/Bloods.css";
var tCSS3 ="http://h1.ripway.com/gomz311/urban.css";
/* load for Firefox, Opera + Safari */
var css=document.createElement("link");
css.rel="stylesheet";css.href=dCSS;css.title="defaultstyle";
document.getElementsByTagName("head")[0].appendChild(css);
/* switch layout */
var css1=document.createElement('link');
css1.rel="stylesheet";css1.href=tCSS1;css1.title="1";
document.getElementsByTagName('head')[0].appendChild(css1);
var css2=document.createElement("link");
css2.rel="stylesheet";css2.href=tCSS2;css2.title="2";
document.getElementsByTagName('head')[0].appendChild(css2);
var css3=document.createElement("link");
css3.rel="stylesheet";css3.href=tCSS3;css3.title="3";
document.getElementsByTagName("head")[0].appendChild(css3);
/* load for IE */
var css4=document.createElement("link");
css4.rel="stylesheet";css4.href=dCSS;css4.title="defaultcss";
document.getElementsByTagName('head')[0].appendChild(css4);
try {
this.theme = document.createElement("div");
}catch (e) {
this.theme = document.createElement("<div>");
}
this.theme = "<input type='button' class='themeButton' value='standart layout' onClick=\"THEME.ActivateCSS('1'); return false;\">"+
" <input type='button' class='themeButton' value='my indonesia ' onClick=\"THEME.ActivateCSS('2'); return false;\">"+
" <input type='button' class='themeButton' value='??? ' onClick=\"THEME.ActivateCSS('3'); return false;\">"+
" <input type='button' class='themeButton' value='urban ' onClick=\"THEME.ActivateCSS('defaultcss'); return false;\">";
addNewBox.init(null,"<div align=\"center\" class=\"boxcontent\">"+this.theme+"</div>","themeswitch",/controlpanel/i,"above");
},
ActivateCSS: function(title) {
var i, link;
for (i = 0;(link = document.getElementsByTagName("link")[i]);i++) {
if (link.getAttribute("rel") != - 1 && link.getAttribute("title")) {
link.disabled = true;
if (link.getAttribute("title") == title) link.disabled = false;
}
}
}
};[/spoiler]
script kek diatas
dihapus aja,
jadi tinggal script yang kek dibawah ini
[spoiler]
if (!attachOnLoadHandler(function() { loadJS();})) { window.onload = function() { loadJS();};}
function loadJS() {
THEME.init();
}
if (typeof THEME == "undefined") { THEME = {}; }
THEME = {
theme: [],
init: function() {
var dCSS ="http://h1.ripway.com/kidin/010508.css ";
var tCSS1 ="http://h1.ripway.com/kidin/010508.css CSS_LINK_1";
var tCSS2 ="http://h1.ripway.com/kevin19pamela/Ls_Layouts/Bloods.css";
var tCSS3 ="http://h1.ripway.com/gomz311/urban.css";
/* load for Firefox, Opera + Safari */
var css=document.createElement("link");
css.rel="stylesheet";css.href=dCSS;css.title="defaultstyle";
document.getElementsByTagName("head")[0].appendChild(css);
/* switch layout */
var css1=document.createElement('link');
css1.rel="stylesheet";css1.href=tCSS1;css1.title="1";
document.getElementsByTagName('head')[0].appendChild(css1);
var css2=document.createElement("link");
css2.rel="stylesheet";css2.href=tCSS2;css2.title="2";
document.getElementsByTagName('head')[0].appendChild(css2);
var css3=document.createElement("link");
css3.rel="stylesheet";css3.href=tCSS3;css3.title="3";
document.getElementsByTagName("head")[0].appendChild(css3);
/* load for IE */
var css4=document.createElement("link");
css4.rel="stylesheet";css4.href=dCSS;css4.title="defaultcss";
document.getElementsByTagName('head')[0].appendChild(css4);
try {
this.theme = document.createElement("div");
}catch (e) {
this.theme = document.createElement("<div>");
}
this.theme = "<input type='button' class='themeButton' value='standart layout' onClick=\"THEME.ActivateCSS('1'); return false;\">"+
" <input type='button' class='themeButton' value='my indonesia ' onClick=\"THEME.ActivateCSS('2'); return false;\">"+
" <input type='button' class='themeButton' value='??? ' onClick=\"THEME.ActivateCSS('3'); return false;\">"+
" <input type='button' class='themeButton' value='urban ' onClick=\"THEME.ActivateCSS('defaultcss'); return false;\">";
addNewBox.init(null,"<div align=\"center\" class=\"boxcontent\">"+this.theme+"</div>","themeswitch",/controlpanel/i,"above");
},
ActivateCSS: function(title) {
var i, link;
for (i = 0;(link = document.getElementsByTagName("link")[i]);i++) {
if (link.getAttribute("rel") != - 1 && link.getAttribute("title")) {
link.disabled = true;
if (link.getAttribute("title") == title) link.disabled = false;
}
}
}
};[/spoiler]
Last edited by robbinhood (2008-06-28 11:06:25)