inherit
48582
0
Jan 29, 2008 14:48:51 GMT -8
Dude Crabster
18
June 2005
mattosk
|
Post by Dude Crabster on Sept 25, 2005 3:30:53 GMT -8
Forum URL: thebing.proboards41.comA few members of our site have been experiencing problems with the Firefox Browser. I think they both have version 1.0.6. Its weird because they only experience the problems with Firefox and not Internet Explorer. Here's what the members posted: ------------------------------------------------------------------------- For those of you amongst us that use firefox to view this site, I pose this question. Does firefox randomly crash on you when loading pages here? Over the last few weeks, every time I've come here to post, firefox has crashed on me. Just to login and open this page to post this thread, firefox crashed and shut itself down on me 5 times. It's really annoying. I do a crap load of on line surfing and the problem seems to be isolated to this one site. Firefox has never ever crashed on me before. I don't know whether it's just our boards or all proboards, since this is the only proboards board I go to but another member has also indicated to me that he has the same problem.My problem is:
Site opens up, it takes a while to load, and during the loadin time, it says "Mozilla has encountered a problem and needs to close". dont remember the exact words, but it says somethin close to that. now it doesnt do it EVERY time i use Firefox, but a good 90% of the time.I open the site, firefox locks up and then quickly terminates itself. This carrys on every time i open it, sometimes i get through a page or two and then it terminates again. After a while it settles down for a while and acts normally but inevitably always crashes again.------------------------------------------------------------------------- The frustrating thing is that I use Firefox and have never encounted a problem like this. Any idea what it could be? Any help will be greatly appreciated.
|
|
inherit
Within Moriarty's Web
7801
0
Sept 26, 2020 6:36:42 GMT -8
Storm
25,378
February 2003
storm914
|
Post by Storm on Sept 25, 2005 4:05:41 GMT -8
Forum URL: thebing.proboards41.comA few members of our site have been experiencing problems with the Firefox Browser. I think they both have version 1.0.6. Its weird because they only experience the problems with Firefox and not Internet Explorer. Here's what the members posted: ------------------------------------------------------------------------- For those of you amongst us that use firefox to view this site, I pose this question. Does firefox randomly crash on you when loading pages here? Over the last few weeks, every time I've come here to post, firefox has crashed on me. Just to login and open this page to post this thread, firefox crashed and shut itself down on me 5 times. It's really annoying. I do a crap load of on line surfing and the problem seems to be isolated to this one site. Firefox has never ever crashed on me before. I don't know whether it's just our boards or all proboards, since this is the only proboards board I go to but another member has also indicated to me that he has the same problem.My problem is:
Site opens up, it takes a while to load, and during the loadin time, it says "Mozilla has encountered a problem and needs to close". dont remember the exact words, but it says somethin close to that. now it doesnt do it EVERY time i use Firefox, but a good 90% of the time.I open the site, firefox locks up and then quickly terminates itself. This carrys on every time i open it, sometimes i get through a page or two and then it terminates again. After a while it settles down for a while and acts normally but inevitably always crashes again.------------------------------------------------------------------------- The frustrating thing is that I use Firefox and have never encounted a problem like this. Any idea what it could be? Any help will be greatly appreciated. Ok when you view your site in IE look at the bottom of the left hand corner where you will have a yellow triangle that sais Done but with errors on page. This means you have alot of coding errors. Double left click it and will give you a line. I tracked down the code that looks like in your main footer this one: <script type="text/javascript"> /* Avatar Uploader by hey */ var fontColor = 'FFFFFF'; var typeWidth = '25'; if(location.href.match(/action=modifyprofile/i)){ var prsinfo = document.modifyForm.avatarurl.parentNode.parentNode.parentNode.parentNode; var cells = prsinfo.insertRow(prsinfo.rows.length-5); var title = cells.insertCell(0); var uploader = cells.insertCell(1); var description = cells.insertCell(2); title.innerHTML ='<font size="2">Avatar Uploader:</font>'; uploader.innerHTML ='<iframe src="http://imageshack.us/iframe.php?txtcolor='+fontColor+'&type=blank&size='+typeWidth+'" scrolling="no" allowtransparency="true" frameborder="0" width="280" height="70">Update your browser for ImageShack.us!</iframe>'; description.innerHTML ='<font size="1">If you don\'t have an avatar uploaded onto the internet yet, you may upload one here.</font>'; } </script> Temporarily remove this one and look again to see if the yello triangle turns into a blue e for explorer. If it is blue, then that was the code causing the problems of shutting down.
|
|
inherit
48582
0
Jan 29, 2008 14:48:51 GMT -8
Dude Crabster
18
June 2005
mattosk
|
Post by Dude Crabster on Sept 25, 2005 21:58:15 GMT -8
First, I apologize for the late response.
I removed that code and the "Site Errors Icon" is still there and yellow. But here are the details provided when double clicking the icon:Line: 95 Car: 1 Error: Object required Code: 0
Line 400 Char: 1 Error: 'tablew[...].width' is null or not an object Code: 0 Any ideas?
|
|
inherit
59106
0
Sept 25, 2005 21:45:22 GMT -8
jaredg
69
September 2005
jaredg
|
Post by jaredg on Sept 25, 2005 22:00:59 GMT -8
It looks like you didn't quite get all of the code. It might help to paste whatever you have in your headers and footers.
|
|
inherit
48582
0
Jan 29, 2008 14:48:51 GMT -8
Dude Crabster
18
June 2005
mattosk
|
Post by Dude Crabster on Sept 25, 2005 22:03:23 GMT -8
The Main or Global Headers?
|
|
inherit
59106
0
Sept 25, 2005 21:45:22 GMT -8
jaredg
69
September 2005
jaredg
|
Post by jaredg on Sept 25, 2005 22:08:18 GMT -8
Global
|
|
inherit
48582
0
Jan 29, 2008 14:48:51 GMT -8
Dude Crabster
18
June 2005
mattosk
|
Post by Dude Crabster on Sept 25, 2005 22:11:24 GMT -8
Okay:
Global Headers:
<SCRIPT LANGUAGE="JavaScript"> <!-- tablew = document.getElementsByTagName('TABLE'); for(t=0;t<tablew.length;t++) { if(tablew[t].width=="92%"){ tablew[t].width='74%'; } } // --> </script>
<head> <link rel="shortcut icon" href="http://www.thefilebucket.com/userfiles/MrMatt/favicon.ico"> </head>
<style type="text/css">
.pm { position: absolute; right: 9px; top: 9px; width: 150px; border: 1px solid #BBBBBB; background-color: #F3F3F3; font-size: 11px; padding: 5px; text-align: center; }
</style>
<div id="pm" style="display: none;" class="pm" style="filter: alpha(opacity=0); -moz-opacity: 0.0;"> <a href="index.cgi?action=pm" id="pmlink"></a> </div>
<script type="text/javascript"> <!-- /* Fading in/out PM box
Created by Peter
This code cannot be reposted at anywhere other than SSDesigns or ProBoards, without permission.
This header must stay intact at all times. */
var iTimer; var iDir = false; var iStop = false; var iCur = iCurMoz = 0;
var iTxt = ""; var pmLink = document.getElementById("pmlink"); var pmCell = document.getElementsByTagName("td").item(2).innerHTML;
function doFade(){ if(iDir){ iCur -= 3; iCurMoz -= 0.02; } else if(iStop == false){ iCur += 3; iCurMoz += 0.02; } if(iCurMoz.toFixed(2) >= 0.95){ clearTimeout(iTimer); iDir = true; var fTime = (document.all)? 2000 : 3000; setTimeout("doFade()", fTime); } var divPM = document.getElementById("pm"); if(document.all){ divPM.style.filter = "alpha(opacity=" + iCur + ")"; } else { divPM.style.MozOpacity = iCurMoz; } iTimer = setTimeout("doFade()", 80); }
if(pmCell.match(/you have <.+?>, (\d+) /i)){ if(RegExp.$1 > 0){ switch(RegExp.$1){ case "1" : iTxt = "You have 1 new private<br /> message."; break; default : iTxt = "You have " + RegExp.$1 + " new<br /> private messages."; } pmLink.innerHTML = iTxt; pmLink.parentNode.style.display = ""; doFade(); } }
//--> </script>
Global Footers:
<script language=javascript> <!-- function colorName(name,color) { for (cn=0;cn<document.links.length;cn++) if (document.links[cn].href.indexOf('action=viewprofile&user='+name) != -1) document.links[cn].style.color=color; }
colorName('mattosk','firebrick'); colorName('admin','firebrick'); colorName('mrmatt','darkorange'); colorName('sophizzle','pink'); colorName('sunshine','tomato'); colorName('shane','lightgreen'); colorName('briannamarie','lightblue'); // --> </script>
<SCRIPT LANGUAGE="JavaScript"> <!-- tablew = document.getElementsByTagName('td')[2].style.display='none'; for(t=0;t<tablew.length;t++) { if(tablew[t].width=="92%"){ tablew[t].width='74%';
} } // --> </script>
<script type="text/javascript"> <!-- /* change "karma" words by california */
var karmaReplace="Reputation"; var exaltReplace="Bless"; var smiteReplace="Curse";
var td=document.getElementsByTagName("td"); if(location.href.match(/action=(display|goto|viewprofile|pmview)/)){ for(i=0;i<td.length;i++){ if(td[i].width=="20%" && td[i].className.match(/windowbg/)){ var tempA=td[i].innerHTML.replace('Karma:',karmaReplace+':'); var tempB=tempA.replace('Exalt',exaltReplace); var tempC=tempB.replace('Smite',smiteReplace); td[i].innerHTML=tempC; } } } // --> </script>
<style> BODY {background-attachment: fixed;} </style>
<script> // Personal Color Code created by Infinite/Reverence. // Copyright 04-05, All Rights Reserved. // This code may not be redistributed without the consent of the creator. // Board Footers.
var TD=document.getElementsByTagName("TD"); for(t=0;t<TD.length;t++){ if(TD[t].innerHTML.match(/\|--\|/) && TD[t].width=="20%"){ var splitEm=TD[t].innerHTML.split("|--|"); var splitEm=splitEm[1].split(/<br>/i); TD[t].innerHTML=TD[t].innerHTML.replace("|--|"+splitEm[0],""); var persColor=splitEm[0]; if(persColor=="Default"){ var persColor=""; } TD[t+5].innerHTML="<font color='"+persColor+"'>"+TD[t+5].innerHTML+"</font>"; } } </script>
<script>
//Back to Top under IP and under mark as read // wooper var TD = document.getElementsByTagName("TD"); for (i=0; i<TD.length; i++) { if (TD[i].align=="left" && TD[i+1].align=="right" && (TD[i-1].className == "windowbg" || TD[i-1].className == "windowbg2") ) { TD[i+1].innerHTML += "<br /><font size='1'><a href='#'>[Back To Top]</a></font>"; } } </script>
<SCRIPT language=JavaScript> <!--
/* Extra Smilies, with preview, drop down menu and option to view all by Todge (Todge-@ntlworld.com) Copyright © 2005 Please keep this header intact */
if (location.href.indexOf('action=headersfooters') == -1) {
var smilieCode = ' '; var smCode = new Array(); var smilie = new Array(); var content = ' ';
// Edit below here...
smilie[0]="http://img./v335/mattosk/TGESmileys/anger.gif"; smilie[1]="http://img./v335/mattosk/TGESmileys/bat.gif"; smilie[2]="http://img./v335/mattosk/TGESmileys/beware.gif"; smilie[3]="http://img./v335/mattosk/TGESmileys/bleh.gif"; smilie[4]="http://img./v335/mattosk/TGESmileys/blunt.gif"; smilie[5]="http://img./v335/mattosk/TGESmileys/bowdown.gif"; smilie[6]="http://img./v335/mattosk/TGESmileys/boxing.gif"; smilie[7]="http://img./v335/mattosk/TGESmileys/cheers.gif"; smilie[8]="http://img./v335/mattosk/TGESmileys/chillin.gif"; smilie[9]="http://img./v335/mattosk/TGESmileys/clap.gif"; smilie[10]="http://img./v335/mattosk/TGESmileys/cool.gif"; smilie[11]="http://img./v335/mattosk/TGESmileys/crying.gif"; smilie[12]="http://img./v335/mattosk/TGESmileys/dance.gif"; smilie[13]="http://img./v335/mattosk/TGESmileys/dead.gif"; smilie[14]="http://img./v335/mattosk/TGESmileys/doh.gif"; smilie[15]="http://img./v335/mattosk/TGESmileys/drool.gif"; smilie[16]="http://img./v335/mattosk/TGESmileys/dontknow.gif"; smilie[17]="http://img./v335/mattosk/TGESmileys/fight.gif"; smilie[18]="http://img./v335/mattosk/TGESmileys/freak.gif"; smilie[19]="http://img./v335/mattosk/TGESmileys/goodandevil.gif"; smilie[20]="http://img./v335/mattosk/TGESmileys/i_did_it.gif"; smilie[21]="http://img./v335/mattosk/TGESmileys/lmfao.gif"; smilie[22]="http://img./v335/mattosk/TGESmileys/luff.gif"; smilie[23]="http://img./v335/mattosk/TGESmileys/marijuana.gif"; smilie[24]="http://img./v335/mattosk/TGESmileys/nana.gif"; smilie[25]="http://img./v335/mattosk/TGESmileys/nod.gif"; smilie[26]="http://img./v335/mattosk/TGESmileys/plotting.gif"; smilie[27]="http://img./v335/mattosk/TGESmileys/pulpfiction.gif"; smilie[28]="http://img./v335/mattosk/TGESmileys/rockon.gif"; smilie[29]="http://img./v335/mattosk/TGESmileys/rofl.gif"; smilie[30]="http://img./v335/mattosk/TGESmileys/sarcasticclap.gif"; smilie[31]="http://img./v335/mattosk/TGESmileys/shock.gif"; smilie[32]="http://img./v335/mattosk/TGESmileys/smoking.gif"; smilie[33]="http://img./v335/mattosk/TGESmileys/sunny.gif"; smilie[34]="http://img./v335/mattosk/TGESmileys/swoon.gif"; smilie[35]="http://img./v335/mattosk/TGESmileys/thud.gif"; smilie[36]="http://img./v335/mattosk/TGESmileys/thumbsup.gif"; smilie[37]="http://img./v335/mattosk/TGESmileys/toast.gif"; smilie[38]="http://img./v335/mattosk/TGESmileys/tongue.gif"; smilie[39]="http://img./v335/mattosk/TGESmileys/wave.gif"; smilie[40]="http://img./v335/mattosk/TGESmileys/whacking.gif"; smilie[41]="http://img./v335/mattosk/TGESmileys/wink.gif"; smilie[42]="http://img./v335/mattosk/TGESmileys/worship.gif"; smilie[43]="http://img./v335/mattosk/TGESmileys/yawn.gif"; smilie[44]="http://img./v335/mattosk/TGESmileys/yeahthat.gif"; smilie[45]="http://img./v335/mattosk/TGESmileys/yesss.gif";
// Edit above here...
// Cache smilies... document.write('<font ID="theSmilies" style="display: none;">'); for(t=0; t<smilie.length; t++) { smCode[t] = ':'+smilie[t].split('/')[smilie[t].split('/').length-1].split('.')[0]+':'; document.write(' <a href=\'javascript:add(" '+smCode[t]+' ")\'><img src="'+smilie[t]+'" border="0" alt=" '+smCode[t]+' "/></a> '); } document.write('</font>');
// set variables smilieCode += '<br /><br /><table bgcolor="000000" border="0"><TR><TD><select name="selectsmilie" style="width: 120px;" onChange="aS(this.options[this.selectedIndex].value)"><option>Select Smilie'; for (p2=0; p2<smCode.length;p2++) { smilieCode += '<option value=" '+smCode[p2]+' ">'+smCode[p2]; } smilieCode += '</select></TD></TR><TR><TD ID="smile" class="windowbg2" height="60" align="center" valign="middle">'; smilieCode += '</TD></TR>'; smilieCode += '<TR><TD class="windowbg2" align="center" valign="middle" height="15"><a href="javascript:void(0)" onClick="popsmilies()">View all smilies</a></TD></TR></table>';
var winleft = (screen.width/2)-250; var winatts = 'width=500,height=200,left='+winleft+',top=50,scrollbars';
content = document.getElementsByTagName('style')[0].innerHTML; content = '<html><head></head><style>'+content+'</style><body>'; content += '<br><table width="450" cellspacing="1" cellpadding="0" border="0" align="center" class="bordercolor">'; content += '<tr><td width="450" class="catbg" align="center"><font>Extra Smilies</font></td></tr>'; content += '<tr><td width="450" class="windowbg2" align="center">' for(t=0; t<smCode.length; t++) { content += " <img src=\""+smilie[t]+"\" border=\"0\" alt=\" "+smCode[t]+" \" style=\"cursor:hand;\" onMouseDown=\"window.opener.add(\' "+smCode[t]+" \');document.focus();\"> "; } content += '</td></tr></table></body></html>';
// display smilies function aS(smiley) { for(t=0; t<smCode.length; t++) { if(smiley.match(smCode[t])) { document.getElementById('smile').innerHTML = ' <a href=\'javascript:add(" '+smCode[t]+' ")\'><img src="'+smilie[t]+'" border="0" alt=" '+smCode[t]+' "/></a> '; } } }
function popsmilies() { var smilieWindow = window.open("","newWindow",winatts); smilieWindow.document.write(content); }
// list smilies var TD = document.getElementsByTagName('TD'); for(t=0; t<TD.length; t++) { if(TD[t].width == '30%' && TD[t].className == 'windowbg2' && TD[t].innerHTML.match('Message:')) { TD[t].vAlign = 'top'; TD[t].innerHTML += smilieCode; } }
// show smilies in posts var post = document.getElementsByTagName('TD'); for(pc=0; pc<post.length; pc++) { if(post[pc].colSpan =='3' && post[pc].vAlign == 'top') { for(t=0; t<smCode.length; t++) { post[pc].getElementsByTagName('font')[0].innerHTML = post[pc].getElementsByTagName('font')[0].innerHTML.replace(new RegExp(smCode[t],"g"),'<img src="'+smilie[t]+'" border="0">'); } } } } // --> </script>
<script language=JavaScript> <!--
function add(smilie) { var tArea = document.getElementsByTagName('textarea'); tArea[0].value = tArea[0].value+smilie; }
smilieCode = smilieCode.split('<br /><br />')[1]; var QR = document.getElementsByTagName('TD'); for(q=0; q<QR.length; q++) { if(QR[q].className == 'titlebg' && QR[q].innerHTML.match('Quick Reply')) { document.write('<style> textarea { WIDTH: 100%; }</style>'); var QRcode = QR[q+1].innerHTML; QR[q+1].innerHTML = '<table width="100%"><tr><td>'+QRcode+'</td><td align="center" valign="middle" width="30%">'+smilieCode+'</td></tr></table>'; } }
// --> </script>
Thank you for all your help by the way. ;D
|
|
inherit
48582
0
Jan 29, 2008 14:48:51 GMT -8
Dude Crabster
18
June 2005
mattosk
|
Post by Dude Crabster on Sept 25, 2005 22:15:57 GMT -8
And I don't know if this will help, but the line number or the second error has now changed from 400 to 383 since I deleted the code from the Main Header.
|
|
inherit
59106
0
Sept 25, 2005 21:45:22 GMT -8
jaredg
69
September 2005
jaredg
|
Post by jaredg on Sept 25, 2005 22:18:29 GMT -8
Wow, that's too much code to wade through!
Answer a couple of questions for me real quick:
1. How many codes did you put in?
2. What headers did you put which codes in?
3. Where did you get those codes?
4. What are the codes supposed to do?
|
|
inherit
48582
0
Jan 29, 2008 14:48:51 GMT -8
Dude Crabster
18
June 2005
mattosk
|
Post by Dude Crabster on Sept 25, 2005 22:45:48 GMT -8
Okay. I'm not the main admin or the one who put in all of the code (but I put in some of it), so I'll help with what I can. I'll explain the footers first since I know what most of those do:
This code just made it possible to change the text colors of certain site members' screenname.
<script language=javascript> <!-- function colorName(name,color) { for (cn=0;cn<document.links.length;cn++) if (document.links[cn].href.indexOf('action=viewprofile&user='+name) != -1) document.links[cn].style.color=color; }
colorName('mattosk','firebrick'); colorName('admin','firebrick'); colorName('mrmatt','darkorange'); colorName('sophizzle','pink'); colorName('sunshine','tomato'); colorName('shane','lightgreen'); colorName('briannamarie','lightblue'); // --> </script>
This code changed the width of the site so we could see the background better.
<SCRIPT LANGUAGE="JavaScript"> <!-- tablew = document.getElementsByTagName('td')[2].style.display='none'; for(t=0;t<tablew.length;t++) { if(tablew[t].width=="92%"){ tablew[t].width='74%';
} } // --> </script>
This code changed the karma words. We changed it to Bless and Curse.
<script type="text/javascript"> <!-- /* change "karma" words by california */
var karmaReplace="Reputation"; var exaltReplace="Bless"; var smiteReplace="Curse";
var td=document.getElementsByTagName("td"); if(location.href.match(/action=(display|goto|viewprofile|pmview)/)){ for(i=0;i<td.length;i++){ if(td[i].width=="20%" && td[i].className.match(/windowbg/)){ var tempA=td[i].innerHTML.replace('Karma:',karmaReplace+':'); var tempB=tempA.replace('Exalt',exaltReplace); var tempC=tempB.replace('Smite',smiteReplace); td[i].innerHTML=tempC; } } } // --> </script>
]This code makes the background fixed. Obviously. lol
<style> BODY {background-attachment: fixed;} </style>
This code in the footers added a Back To Top link in each post so we didn't have to scroll up everytime. ( From Here )
<script>
//Back to Top under IP and under mark as read // wooper var TD = document.getElementsByTagName("TD"); for (i=0; i<TD.length; i++) { if (TD[i].align=="left" && TD[i+1].align=="right" && (TD[i-1].className == "windowbg" || TD[i-1].className == "windowbg2") ) { TD[i+1].innerHTML += "<br /><font size='1'><a href='#'>[Back To Top]</a></font>"; } } </script>
This code also from the footers made it so we could add a line in a profiles where we could input a color and the text in our posts would automatically be that font color so we don't have to add the BBC code.
<script> // Personal Color Code created by Infinite/Reverence. // Copyright 04-05, All Rights Reserved. // This code may not be redistributed without the consent of the creator. // Board Footers.
var TD=document.getElementsByTagName("TD"); for(t=0;t<TD.length;t++){ if(TD[t].innerHTML.match(/\|--\|/) && TD[t].width=="20%"){ var splitEm=TD[t].innerHTML.split("|--|"); var splitEm=splitEm[1].split(/<br>/i); TD[t].innerHTML=TD[t].innerHTML.replace("|--|"+splitEm[0],""); var persColor=splitEm[0]; if(persColor=="Default"){ var persColor=""; } TD[t+5].innerHTML="<font color='"+persColor+"'>"+TD[t+5].innerHTML+"</font>"; } } </script>
This code from the last half of the Footer added a PM-Pop up box to our posting area and to the right of our Quick-Reply area. ( From Here )
<script>
//Back to Top under IP and under mark as read // wooper var TD = document.getElementsByTagName("TD"); for (i=0; i<TD.length; i++) { if (TD[i].align=="left" && TD[i+1].align=="right" && (TD[i-1].className == "windowbg" || TD[i-1].className == "windowbg2") ) { TD[i+1].innerHTML += "<br /><font size='1'><a href='#'>[Back To Top]</a></font>"; } } </script>
<SCRIPT language=JavaScript> <!--
/* Extra Smilies, with preview, drop down menu and option to view all by Todge (Todge-@ntlworld.com) Copyright © 2005 Please keep this header intact */
if (location.href.indexOf('action=headersfooters') == -1) {
var smilieCode = ' '; var smCode = new Array(); var smilie = new Array(); var content = ' ';
// Edit below here...
smilie[0]="http://img./v335/mattosk/TGESmileys/anger.gif"; smilie[1]="http://img./v335/mattosk/TGESmileys/bat.gif"; smilie[2]="http://img./v335/mattosk/TGESmileys/beware.gif"; smilie[3]="http://img./v335/mattosk/TGESmileys/bleh.gif"; smilie[4]="http://img./v335/mattosk/TGESmileys/blunt.gif"; smilie[5]="http://img./v335/mattosk/TGESmileys/bowdown.gif"; smilie[6]="http://img./v335/mattosk/TGESmileys/boxing.gif"; smilie[7]="http://img./v335/mattosk/TGESmileys/cheers.gif"; smilie[8]="http://img./v335/mattosk/TGESmileys/chillin.gif"; smilie[9]="http://img./v335/mattosk/TGESmileys/clap.gif"; smilie[10]="http://img./v335/mattosk/TGESmileys/cool.gif"; smilie[11]="http://img./v335/mattosk/TGESmileys/crying.gif"; smilie[12]="http://img./v335/mattosk/TGESmileys/dance.gif"; smilie[13]="http://img./v335/mattosk/TGESmileys/dead.gif"; smilie[14]="http://img./v335/mattosk/TGESmileys/doh.gif"; smilie[15]="http://img./v335/mattosk/TGESmileys/drool.gif"; smilie[16]="http://img./v335/mattosk/TGESmileys/dontknow.gif"; smilie[17]="http://img./v335/mattosk/TGESmileys/fight.gif"; smilie[18]="http://img./v335/mattosk/TGESmileys/freak.gif"; smilie[19]="http://img./v335/mattosk/TGESmileys/goodandevil.gif"; smilie[20]="http://img./v335/mattosk/TGESmileys/i_did_it.gif"; smilie[21]="http://img./v335/mattosk/TGESmileys/lmfao.gif"; smilie[22]="http://img./v335/mattosk/TGESmileys/luff.gif"; smilie[23]="http://img./v335/mattosk/TGESmileys/marijuana.gif"; smilie[24]="http://img./v335/mattosk/TGESmileys/nana.gif"; smilie[25]="http://img./v335/mattosk/TGESmileys/nod.gif"; smilie[26]="http://img./v335/mattosk/TGESmileys/plotting.gif"; smilie[27]="http://img./v335/mattosk/TGESmileys/pulpfiction.gif"; smilie[28]="http://img./v335/mattosk/TGESmileys/rockon.gif"; smilie[29]="http://img./v335/mattosk/TGESmileys/rofl.gif"; smilie[30]="http://img./v335/mattosk/TGESmileys/sarcasticclap.gif"; smilie[31]="http://img./v335/mattosk/TGESmileys/shock.gif"; smilie[32]="http://img./v335/mattosk/TGESmileys/smoking.gif"; smilie[33]="http://img./v335/mattosk/TGESmileys/sunny.gif"; smilie[34]="http://img./v335/mattosk/TGESmileys/swoon.gif"; smilie[35]="http://img./v335/mattosk/TGESmileys/thud.gif"; smilie[36]="http://img./v335/mattosk/TGESmileys/thumbsup.gif"; smilie[37]="http://img./v335/mattosk/TGESmileys/toast.gif"; smilie[38]="http://img./v335/mattosk/TGESmileys/tongue.gif"; smilie[39]="http://img./v335/mattosk/TGESmileys/wave.gif"; smilie[40]="http://img./v335/mattosk/TGESmileys/whacking.gif"; smilie[41]="http://img./v335/mattosk/TGESmileys/wink.gif"; smilie[42]="http://img./v335/mattosk/TGESmileys/worship.gif"; smilie[43]="http://img./v335/mattosk/TGESmileys/yawn.gif"; smilie[44]="http://img./v335/mattosk/TGESmileys/yeahthat.gif"; smilie[45]="http://img./v335/mattosk/TGESmileys/yesss.gif";
// Edit above here...
// Cache smilies... document.write('<font ID="theSmilies" style="display: none;">'); for(t=0; t<smilie.length; t++) { smCode[t] = ':'+smilie[t].split('/')[smilie[t].split('/').length-1].split('.')[0]+':'; document.write(' <a href=\'javascript:add(" '+smCode[t]+' ")\'><img src="'+smilie[t]+'" border="0" alt=" '+smCode[t]+' "/></a> '); } document.write('</font>');
// set variables smilieCode += '<br /><br /><table bgcolor="000000" border="0"><TR><TD><select name="selectsmilie" style="width: 120px;" onChange="aS(this.options[this.selectedIndex].value)"><option>Select Smilie'; for (p2=0; p2<smCode.length;p2++) { smilieCode += '<option value=" '+smCode[p2]+' ">'+smCode[p2]; } smilieCode += '</select></TD></TR><TR><TD ID="smile" class="windowbg2" height="60" align="center" valign="middle">'; smilieCode += '</TD></TR>'; smilieCode += '<TR><TD class="windowbg2" align="center" valign="middle" height="15"><a href="javascript:void(0)" onClick="popsmilies()">View all smilies</a></TD></TR></table>';
var winleft = (screen.width/2)-250; var winatts = 'width=500,height=200,left='+winleft+',top=50,scrollbars';
content = document.getElementsByTagName('style')[0].innerHTML; content = '<html><head></head><style>'+content+'</style><body>'; content += '<br><table width="450" cellspacing="1" cellpadding="0" border="0" align="center" class="bordercolor">'; content += '<tr><td width="450" class="catbg" align="center"><font>Extra Smilies</font></td></tr>'; content += '<tr><td width="450" class="windowbg2" align="center">' for(t=0; t<smCode.length; t++) { content += " <img src=\""+smilie[t]+"\" border=\"0\" alt=\" "+smCode[t]+" \" style=\"cursor:hand;\" onMouseDown=\"window.opener.add(\' "+smCode[t]+" \');document.focus();\"> "; } content += '</td></tr></table></body></html>';
// display smilies function aS(smiley) { for(t=0; t<smCode.length; t++) { if(smiley.match(smCode[t])) { document.getElementById('smile').innerHTML = ' <a href=\'javascript:add(" '+smCode[t]+' ")\'><img src="'+smilie[t]+'" border="0" alt=" '+smCode[t]+' "/></a> '; } } }
function popsmilies() { var smilieWindow = window.open("","newWindow",winatts); smilieWindow.document.write(content); }
// list smilies var TD = document.getElementsByTagName('TD'); for(t=0; t<TD.length; t++) { if(TD[t].width == '30%' && TD[t].className == 'windowbg2' && TD[t].innerHTML.match('Message:')) { TD[t].vAlign = 'top'; TD[t].innerHTML += smilieCode; } }
// show smilies in posts var post = document.getElementsByTagName('TD'); for(pc=0; pc<post.length; pc++) { if(post[pc].colSpan =='3' && post[pc].vAlign == 'top') { for(t=0; t<smCode.length; t++) { post[pc].getElementsByTagName('font')[0].innerHTML = post[pc].getElementsByTagName('font')[0].innerHTML.replace(new RegExp(smCode[t],"g"),'<img src="'+smilie[t]+'" border="0">'); } } } } // --> </script>
<script language=JavaScript> <!--
function add(smilie) { var tArea = document.getElementsByTagName('textarea'); tArea[0].value = tArea[0].value+smilie; }
smilieCode = smilieCode.split('<br /><br />')[1]; var QR = document.getElementsByTagName('TD'); for(q=0; q<QR.length; q++) { if(QR[q].className == 'titlebg' && QR[q].innerHTML.match('Quick Reply')) { document.write('<style> textarea { WIDTH: 100%; }</style>'); var QRcode = QR[q+1].innerHTML; QR[q+1].innerHTML = '<table width="100%"><tr><td>'+QRcode+'</td><td align="center" valign="middle" width="30%">'+smilieCode+'</td></tr></table>'; } }
// --> </script>
I'll work on the headers next.
|
|
inherit
59106
0
Sept 25, 2005 21:45:22 GMT -8
jaredg
69
September 2005
jaredg
|
Post by jaredg on Sept 25, 2005 22:55:49 GMT -8
If it's possible, take out all of the codes. Now put one in at a time and see which ones work and which ones don't.
|
|
inherit
48582
0
Jan 29, 2008 14:48:51 GMT -8
Dude Crabster
18
June 2005
mattosk
|
Post by Dude Crabster on Sept 25, 2005 23:01:55 GMT -8
Okay. I'll let you know how it goes.
|
|
inherit
48582
0
Jan 29, 2008 14:48:51 GMT -8
Dude Crabster
18
June 2005
mattosk
|
Post by Dude Crabster on Sept 25, 2005 23:04:26 GMT -8
This, in the footer, causes an error:
<SCRIPT LANGUAGE="JavaScript"> <!-- tablew = document.getElementsByTagName('td')[2].style.display='none'; for(t=0;t<tablew.length;t++) { if(tablew[t].width=="92%"){ tablew[t].width='74%';
} } // --> </script>
Also, this code in the header causes an error. I'm not exactly sure what its supposed to do, but I think it removes the "Hey ___ You have __ Private Messages" thing at the top of the site.
<script type="text/javascript"> <!-- /* Fading in/out PM box
Created by Peter
This code cannot be reposted at anywhere other than SSDesigns or ProBoards, without permission.
This header must stay intact at all times. */
var iTimer; var iDir = false; var iStop = false; var iCur = iCurMoz = 0;
var iTxt = ""; var pmLink = document.getElementById("pmlink"); var pmCell = document.getElementsByTagName("td").item(2).innerHTML;
function doFade(){ if(iDir){ iCur -= 3; iCurMoz -= 0.02; } else if(iStop == false){ iCur += 3; iCurMoz += 0.02; } if(iCurMoz.toFixed(2) >= 0.95){ clearTimeout(iTimer); iDir = true; var fTime = (document.all)? 2000 : 3000; setTimeout("doFade()", fTime); } var divPM = document.getElementById("pm"); if(document.all){ divPM.style.filter = "alpha(opacity=" + iCur + ")"; } else { divPM.style.MozOpacity = iCurMoz; } iTimer = setTimeout("doFade()", 80); }
if(pmCell.match(/you have <.+?>, (\d+) /i)){ if(RegExp.$1 > 0){ switch(RegExp.$1){ case "1" : iTxt = "You have 1 new private<br /> message."; break; default : iTxt = "You have " + RegExp.$1 + " new<br /> private messages."; } pmLink.innerHTML = iTxt; pmLink.parentNode.style.display = ""; doFade(); } }
//--> </script>
Thanks for your help man.
|
|