Firefox adds additional 'modules' to my site, diff from IE! |
Firefox adds additional 'modules' to my site, diff from IE! |
![]()
Post
#1
|
|
Newbie ![]() Group: Member Posts: 1 Joined: Dec 2008 Member No: 702,974 ![]() |
Hi there, I really would appreciate it if someone can help me with this tideous problem! i realised that when i view my xanga site http://xanga.com/skelekiss with IE, it shows only 2 columns. One with my profile and links below it, and the right column shows my posts. But when i use Firefox to view my xanga site, I have an additional column in the middle! showing the usual modules in xanga. the ones showing my subscriptions, archive and so on. Whats happening? how do i deal with it? :(
|
|
|
![]() |
![]()
Post
#2
|
|
![]() ![]() ![]() ![]() ![]() Group: Member Posts: 246 Joined: Dec 2004 Member No: 68,892 ![]() |
IE and Firefox have differences in coding. If you would like to remove the left module column for your site in Firefox, simply add the following code to your custom header.
CODE <style type="text/css"> .left{display:none;} </style> Happy holidays, and I hope this helps. :) |
|
|
![]()
Post
#3
|
|
![]() Hey, I'm Mike ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 1,272 Joined: May 2006 Member No: 406,241 ![]() |
Try this
![]() CODE <script type="text/javascript">
<!-- //removes Subscriptions, My Blogrings, Posting Calender, Top Tags Modules //by Edw @ forum.scriptshelf.com //supports firefox // 1 = yes, 0 = no RemoveSubscriptionsModule = 1; RemoveMyBlogringsModule = 1; RemovePostingCalender = 1; RemoveTopTags = 0; RemoveTagsInCommentPage = 0; // DO NOT EDIT BEYOND THIS LINE //man-made removeNode() for non-IE browser if(window.Node){ Node.prototype.removeNode=function(removeChildren){ if(removeChildren) return this.parentNode.removeChild(this); else{ var range=document.createRange(); range.selectNodeContents(this); return this.parentNode.replaceChild(range.extractContents(),this); } } } xUrl = document.URL.toLowerCase(); var re = /xanga.com\b\/[a-zA-Z]{1,}[\da-zA-Z_]{1,}\/[0123456789]+\/[\da-z-]{0,}.html/; var nothome = /xanga.com\b\/profile.aspx|xanga.com\b\/guestbook.aspx|xanga.com\b\/contentlatest.asp|xanga.com\b\/private\//; function checkIfModulesExists() { if (!(xUrl.match(re) || xUrl.match(nothome))) { return true; } else { return false; } } function RemoveModules() { var subscription = document.getElementById("subTitle").parentNode.parentNode.parentNode.parentNode.parentNode; var calender= document.getElementById("aspnetForm"); if (RemoveSubscriptionsModule == 1){ subscription.nextSibling.removeNode(true); subscription.removeNode(true); } if (RemoveMyBlogringsModule == 1){ var blogring= calender.previousSibling.previousSibling.previousSibling; blogring.nextSibling.removeNode(true); blogring.removeNode(true); } if (RemovePostingCalender == 1){ calender.removeNode(true); } if(RemoveTopTags == 1){ document.getElementById("xmoduletags").removeNode(true); } } if(RemoveTagsInCommentPage == 1){ if (xUrl.match(re)){ document.getElementById("xmoduletags").removeNode(true); } } if (checkIfModulesExists()) RemoveModules(); //--> </script> |
|
|
![]() ![]() |