i need to change the position of this code the code right now is apper on the Top right i want to place to any where else like before the fotter or in a box and not the top of the page
- Code:
$("head").append('<link rel="stylesheet" type="text/css" id="tstyle" />');
if(my_getcookie("sstyle")) { $("#tstyle").attr("href", my_getcookie('sstyle')); }
function addstyle(nom,lien) { $("#sstyle").append('<option value="'+lien+'">'+nom+'</option>'); }
$(function(){
$("#frame_chatbox").load(function(){
$("#frame_chatbox").contents().find("head").append($("#tstyle").clone());
});
$("iframe[name=smilies]").load(function(){
$("iframe[name=smilies]").contents().find("head").append($("#tstyle").clone()).append('<style type="text/css">body{margin:100!important;}</style>');
});
$("body").prepend('<select id="sstyle" onChange="my_setcookie(\'sstyle\',$(\'#tstyle\')[0].href=this.value,1,0);$(\'#frame_chatbox,iframe[name=smilies]\').contents().find(\'#tstyle\').attr(\'href\',this.value);this.selectedIndex=0;"><option>اختر ستايل</option></select>');
addstyle("ابيض جميل","http://micsoft.xp3.biz/css/anime-rose.css");
addstyle("اصفر رائع","http://micsoft.xp3.biz/css/dangan-ronpa.css");
addstyle("وردى مميز","http://micsoft.xp3.biz/css/karneval.css");
addstyle("احمر ممتاز","http://micsoft.xp3.biz/css/chihayafuru.css");
addstyle("بنفسجى قاتم","http://micsoft.xp3.biz/css/blast-of-tempest.css");
addstyle("نيلى جميل","http://www.anime-rose.com/vb/anime-rose_color/senyuu.css");
addstyle("برتقالى تحفة","http://www.anime-rose.com/vb/anime-rose_color/kuroko-no-basuke.css");
addstyle("اخضر فاتح","http://www.anime-rose.com/vb/anime-rose_color/uta-no-prince-sama-maji-love.css");
addstyle("ستايل مميز","http://www.anime-rose.com/vb/anime-rose_color/rdg.css");
addstyle("الغاء الاستايل","");
});
Last edited by Michael_vx on March 22nd 2014, 6:34 am; edited 1 time in total