home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Making MSIE code compatible with Firefox

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2154
Discussions: 200,945, Posts: 2,379,353, Members: 246,307
Old April 13th, 2007, 12:52 AM   Digg it!   #1 (permalink)
Member
 
Join Date: May 2004
Posts: 184
Making MSIE code compatible with Firefox

Can anybody make the following code compatible with Firefox?
At the moment, it only works with MSIE.

Quote:
<script>
// Display Only One Entry

if(location.pathname=="/YOUR EXACT USER NAME HERE"){
var longer = false;
var tds = document.getElementsByTagName('td');
for(i=0; i<tds.length;i++)
{
booga = tds[i].innerHTML.indexOf('blogheader');
if(booga==11){longer=false;break;}
boogie = tds[i].innerHTML.indexOf('javascript');
if(boogie == 19){longer=true;break;}
}
var tables = tds[i].getElementsByTagName('table');
var numBreaks = 0;
var x = 0;
if(longer==true){x=3;}else{x=1}
for(j=x; j<tables.length;j++)
{
numBreaks += tables[j].getElementsByTagName('br').length;
tables[j].style.display='none';
}
var divs = tds[i].getElementsByTagName('div');
for(j=2+(2*1)-2; j<divs.length;j++)
{
divs[j].style.display='none';
}
var breaks = tds[i].getElementsByTagName('br');
for(j=breaks.length-5-numBreaks;j<breaks.length;j++)
{
breaks[j].style.display='none';
}
var horizontals = tds[i].getElementsByTagName('hr');
var j = horizontals.length-1;
horizontals[j].style.display='none';
}
</script>

I would do it myself, but I haven't coded in forever. I forgot all the compatibility issues. Ahaha.
VillageIdiot906 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox/Error Code 500/Internal Server Error pandorah Applications and Operating Systems 17 August 31st, 2008 09:01 PM
Firefox - latest chunk of code added to my ban list ArcticFox Applications and Operating Systems 14 December 7th, 2005 11:04 PM
MSIE 5.5 History locks up MSIE Tomteriffic Applications and Operating Systems 1 January 13th, 2004 12:07 AM
Making Games Backwards Compatible TheChronoRogue General Gaming Discussion 3 June 17th, 2003 05:42 AM
MSIE Won't go anywhere?? Tomteriffic Networking and Internet 7 March 14th, 2002 11:27 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Making Health Care Worse (165)
The disrespect of Obama by Russian .. (17)
Is It Just Me? (2921)
Wireless Televisions. (11)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Regular Build (6)
Is the PSU I received dead? (12)
Print spooler problem (15)
HIS HD5770 graphic card question (15)
windows vista security holes (9)
Install XP pro and a Vista laptop ?.. (11)
Foreign voltage (10)
Dept. of HS: NSA 'Helped' Develop V.. (15)
Recent Discussions
Xbox 360 GTA: SA disk error (1)
Is the PSU I received dead? (12)
How to convert MP3's (2)
windows 7 internet problem (5)
Multiple Restarts Required at Boot (0)
BSOD On Startup (ntoskrnl.exe) (2)
Print spooler problem (15)
Laptop with wireless problem. (1)
Wireless Televisions. (11)
Have you switched yet? (86)
Asus P4G8X Mobo (5)
screen resolution vs monitor size (2)
radeon x850xt platinum & shader 3 (4)
sms storage to PC (0)
Regular Build (6)
Open With ..... Win7 (0)
java code for fibonacci (1)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (35)
windows 7 problem (7)
CPU fan stops spinning randomly (8)
Partition Magic caused HDD problem (3)
Point and Shoot Camera Suggestions. (2)
Modern Warfare 2 freeze (13)
wireless user (1)
World's largest Monopoly Game using G.. (332)


All times are GMT -4. The time now is 06:48 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28