Log In · Register

 
 
Closed TopicStart new topic
Add Custom Left Module for Mozilla/Firefox/Netscap, Left Module only works for IE.
gottem
post Jan 14 2005, 04:23 PM
Post #1


Newbie
*

Group: Member
Posts: 1
Joined: Jan 2005
Member No: 84,159



The code discussed in here only works for Internet Explorer browsers. I know it does NOT work with Mozilla/FireFox/Netscape because they do not support the "insertAdjacentHTML" javascript function. Does anyone have a script that will work for both types of browsers?

Any help would be much appreciated.
 
heyyfrankie
post Jan 14 2005, 04:34 PM
Post #2


This bitch better work!
********

Group: Staff Alumni
Posts: 13,681
Joined: Jul 2004
Member No: 28,095



if none of the ones in the xanga scripts section will work for you, try making your own xanga with divs. look in the tutorials section for a tutorial on divs. wink.gif
 
coyote
post Jan 14 2005, 06:46 PM
Post #3


Senior Member
***

Group: Member
Posts: 92
Joined: Feb 2004
Member No: 3,709



yah, haha, i neglected that when I wrote that code...
Add this, BEFORE the custom left side code.

QUOTE
<script language="javascript">
<!--
if (typeof HTMLElement!="undefined" && !HTMLElement.prototype.insertAdjacentElement) {
HTMLElement.prototype.insertAdjacentHTML = function(where,htmlStr){
var r = this.ownerDocument.createRange();
r.setStartBefore(this);
var parsedHTML = r.createContextualFragment(htmlStr);
this.insertBefore(parsedHTML,this.firstChild);
}
}
//-->
</script>
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: