Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(document).ready(function(){
- var css = getCookie("cssurl");
- if (css != "") {
- changeStyle(css);
- }
- });
- function getCookie(cname) {
- var name = cname + "=";
- var ca = document.cookie.split(';');
- for(var i=0; i<ca.length; i++) {
- var c = ca[i];
- while (c.charAt(0)==' ') c = c.substring(1);
- if (c.indexOf(name) == 0) return c.substring(name.length, c.length);
- }
- return "";
- }
- function changeStyle(url){
- if( $('link.style').length > -1 ){
- $('link.style').remove();
- }
- /*ha oldal modulban használsz alap css-t, az ez alatti részt kommenteld ki, és a modul id-t cseréld ki*/
- /* if($('table[module_id="36921729"]').length > -1){
- $('table[module_id="36921729"]').empty();
- } */
- // külső css fájl esetén a css fájlod nevét add meg itt
- if($('link[href="http://nikkiiworld.flaunt.nu/gp_css/css1.css"]').length > -1){
- $('link[href="http://nikkiiworld.flaunt.nu/gp_css/css1.css"]').remove();
- }
- var css = document.createElement('link');
- css.setAttribute('rel', 'stylesheet');
- css.setAttribute('class', 'style');
- css.setAttribute('href', url);
- document.head.appendChild(css);
- document.cookie="cssurl="+url+";path=/";
- }
- </script>
Add Comment
Please, Sign In to add comment