InterOcean Designs
« 'Jump to Code' »

Welcome Guest. Please Login or Register.
May 18, 2013, 4:46am




InterOcean Designs :: ProBoards Codes :: ProBoard Code Database :: 'Jump to Code'
Page 1 of 3 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]
 AuthorTopic: 'Jump to Code' (Read 1,797 times)
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 'Jump to Code'
« Thread Started on May 23, 2009, 1:01am »

'Jump to Code' by SubDevo
Tested in IE, FF, Safari and Chrome.

THE CODE JUMP DOES NOT WORK IN OPERA
The extra buttons function normally. The jumps are visible and filled with code titles,
but it will not "jump" to the code.


PREVIEW (animated gif)

Features:
Resize your Code Area (Can be disabled)
This code resizes your code area to make it easier to work. Now more of your code is viewable at one time, with fewer linewraps!

Use a CSS class to style your code areas in the "Advanced" version of this code.

This code gives you two extra "Save Changes" buttons, two "Reset" buttons, two "Sort/Unsort" buttons and two dropdown Code Jumps in your headers/footers area.
See Preview pic above to get a better idea! It also remembers (for 10 minutes) the last code you edited so it will instantly jump to that code when you go back to your code area. Very handy if you are tweaking a code!

Details:
This code allows you to instantly find and jump to individual codes within your headers and footers! "Jump to Code" scans your headers/footers for Javascript codes and puts their titles into the Code Jumps. When you select a code from the jump, it finds that code, highlights the title and scrolls the code box to bring the code into view! No more time consuming scrolling! Either Global, Main or the Board name is displayed, so you always know what area you are working in. A "Reset" button is also provided which instantly fills the code areas with the code that was there before you made any changes. (Not having to reload the page is nice!) You can change the code lists from sorted to unsorted (and Vice Versa) at your whim without reloading the page. When you look for a code and you know the name of it, Sort the list. If you don't remember the name of the code, but you know it is somewhere near the bottom of your footers, Unsort the code and it will be easier to find.

Enjoy!!!
SubDevo :)

By default, the list of codes in the jump, are in the order that they are listed in your headers/footers. If you prefer, you may change it to an alphabetical listing when you first load your headers/footers, in this line:

var nSort=0; // Sort Code Names Alphabetically at Startup. 1=Yes, 0=No
(You may use the "Sort/Unsort" button, to toggle sorted/unsorted Code Titles, at any time, in the Code Jump.)

There are two versions of this code. The only difference between them, is how you want to specify the "look" of your code areas.
"Standard" version: Specify width and height only, set in the code.
"Advanced" version: Use a class to change any visual aspect of your code areas. Background (color or image), font (color, size, type etc.), and borders.
Since you (the Admin), is the only one using the code areas, why not "personalize" them just for you! ;)


"Standard" Version:
Set the Code Area Size: (pixels)
var nWidth=764; // Desired Width (Default is 631)
var nHeight=594; // Desired Height (Default is 297)


You may use the default PB size by setting one of the variables to "0".

Example:
var nWidth=0; // Desired Width (Default is 631)
(This disables resizing of the code area)


"Advanced" Version:
You may enter any class name in this variable:
var nClass="jumptocode"; // Name of Class to Style the Code Areas.

Set all properties in your chosen class. A "default" class in included in the code.

<style type="text/css">
<!--
.jumptocode{width: 730px; height: 594px; background-color: #1E1E34; color: #C3C3D6;}
-->
</style>


Remove the options from the class that you do not need. And add other options as desired. Place this class (or your own) ABOVE the code.

Setup Instructions:

My code looks for codes by finding a "<script" tag:
"<script"
Once it finds that, it looks for the first remark line:
"// " or "/* " (Note: There must be a "space" after the remark!)
It uses the text from that line for the code title in the Code Jump.

IMPORTANT! For Best Results:
  • Make SURE there is NOT a space BEFORE "<script".
  • Make SURE there IS a space after the Title Remark! "/*<space>" OR "//<space>".
  • Make SURE every script has a Title Remark and it is the FIRST remark after the script tag.

    Example:
    <script type="text/javascript">
    <!--
    /* Jump to Code by SubDevo */
    or
    // Jump to Code by SubDevo
If you have code that doesn't have any "remark" lines, it will either:
  • Put a blank line in the Code Jump.
    In this case, Unsort the jump and click the code directly above the blank entry. The "offending" title will be the next code down from that one.
  • Or you may get an error on the page.
    (you will know that is the case if you don't see the buttons or jumps!)
    In most cases, this is caused by the first remark after a script tag, being a variable instead of a code title.

    Example:
    <script type="text/javascript">
    <!--
    //
    var redRum=omega; <----- BAD!!
Just spend a few minutes and go through your code to make sure every code has a remark in it and you will be fine. ;)

If you need more help just let me know!


Location: Main Footer (Choose a version)

"Standard" Version. Specify width and height in the code.
Code:
<script type="text/javascript">
/* 'Jump to Code' by SubDevo */
/* Go to last code edited by Wormopolis */
/* Main Footer - Please leave this header intact. Do not repost. */
/* [url]http://interoceandesigns.com[/url] or [url]http://lsdp.proboards.com[/url] */

var nSort=0; // Sort Code Names Alphabetically at Startup. 1=Yes, 0=No
var nWidth="764"; // Desired Width (Default is 631)
var nHeight="594"; // Desired Height (Default is 297)

if(pb_action=="headersfooters2"){
&nbsp; &nbsp;var nCode=document.createElement("div"),n_D=[],cj=[],bLab="Sort";
&nbsp; &nbsp;var nForm,nArea,nBo,nBn,nInner,lText,stuff,xD,nC,a,i,x;
&nbsp; &nbsp;for(i=0;i<2;i++){ nArea=(i==0)?"header":"footer";
&nbsp; &nbsp;&nbsp; &nbsp;n_D[i]=document.getElementsByName(nArea)[0]; nForm=n_D[i].parentNode;
&nbsp; &nbsp;&nbsp; &nbsp;if(nForm.nodeName=="FONT"){nForm=nForm.parentNode;}
&nbsp; &nbsp;&nbsp; &nbsp;nBo=nForm.parentNode.firstChild; nBo=(nBo.nodeName=="FONT")?nBo.innerHTML:nBo.nodeValue;
&nbsp; &nbsp;&nbsp; &nbsp;nInner=n_D[i].previousSibling.previousSibling; nBn=nBo.slice(21,nBo.indexOf(" header"));
&nbsp; &nbsp;&nbsp; &nbsp;if(!nBn){nBn=nBo.slice(56,nBo.length-1);}
&nbsp; &nbsp;&nbsp; &nbsp;if(nWidth&&nHeight){a=n_D[i].style; a.height=nHeight; a.width=nWidth;}
&nbsp; &nbsp;&nbsp; &nbsp;lText=(nBn+" "+nInner.innerHTML).toUpperCase();
&nbsp; &nbsp;&nbsp; &nbsp;nInner.innerHTML=lText+'<hr size="1" class="hr"/>';
&nbsp; &nbsp;&nbsp; &nbsp;stuff='<select size=1 id="cj'+nArea+'" onchange="fText(this.value,'+i+');"><option value="" selected="">'+lText+' Code Jump</option>';
&nbsp; &nbsp;&nbsp; &nbsp;xD=n_D[i].value.split(/\r\n/); nC=[];
&nbsp; &nbsp;&nbsp; &nbsp;if(xD.length<2){xD=n_D[i].value.split(/(\r|\n)/g);}
&nbsp; &nbsp;&nbsp; &nbsp;for(x=0;x<xD.length;x++){
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if(xD[x].match(/^(<script)/i)){
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;while(!xD[x].match(/^(\/[\/|*]\s)/)){x++;}
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;nC.push(xD[x].replace(/(\/\/\s|\/\*\s|\*\/)/g,""));
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;}
&nbsp; &nbsp;&nbsp; &nbsp;} cj[i]=nC.slice(); x=-1; if(nSort){bLab="Unsort";}
&nbsp; &nbsp;&nbsp; &nbsp;while(nC[++x]){stuff+="<option value='"+nC[x]+"'>"+nC[x]+"</option>";}
&nbsp; &nbsp;&nbsp; &nbsp;nCode.innerHTML='<input type="submit" title="Save Code" accesskey="s" value="Save Changes"/> <input type="reset" title="Undo Changes" value="Reset" accesskey="r" onClick="reset"/> '+stuff+'</select> <input type="button" id="j'+nArea+'" value="'+bLab+'" title="Sort/Unsort Code Titles" accesskey="a" onClick="gCode(this.id,'+i+')"/>';
&nbsp; &nbsp;&nbsp; &nbsp;n_D[i].parentNode.insertBefore(nCode.cloneNode(true),n_D[i].previousSibling);
&nbsp; &nbsp;} nSort= !nSort; gCode("jheader",0); nSort= !nSort; gCode("jfooter",1);
&nbsp; &nbsp;setTimeout("changeCode()",2000);
}
function changeCode(){
&nbsp; &nbsp;var n=(document.cookie.match(/lastCodeEdited=(.*?)(;|$)/))?RegExp.$1.split("±"):0;
&nbsp; &nbsp;if(n){fText(n[1],n[0]);}
}
function gCode(nID,nH){ var nOpt=[];
&nbsp; &nbsp;nSort= !nSort; nOpt=cj[nH].slice(); if(nSort){nOpt.sort();}
&nbsp; &nbsp;document.getElementById(nID).value=(nSort)?"Unsort":"Sort";
&nbsp; &nbsp;var nJ=document.getElementById("c"+nID),a,i=-1; nJ.selectedIndex="0";
&nbsp; &nbsp;while(nOpt[++i]){ a=nJ.options[i+1];
&nbsp; &nbsp;&nbsp; &nbsp;a.text=nOpt[i]; a.value=nOpt[i];
}}
function fText(nVal,nT){
&nbsp; &nbsp;var exptime=new Date(),t=n_D[nT],start,end,kev,a;
&nbsp; &nbsp;if(nVal==""||t.value.indexOf(nVal)==-1){return;}
&nbsp; &nbsp;exptime.setMinutes(exptime.getMinutes()+10);
&nbsp; &nbsp;document.cookie="lastCodeEdited="+nT+"±"+nVal+"; expires="+exptime.toUTCString();
&nbsp; &nbsp;nVal=" "+nVal; start=t.value.indexOf(nVal); end=start+nVal.length;
&nbsp; &nbsp;t.scrollTop=t.scrollHeight;
&nbsp; &nbsp;if(t.setSelectionRange){
&nbsp; &nbsp;&nbsp; &nbsp;if(!window.TextEvent){ t.setSelectionRange(end-1,end);
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;kev=document.createEvent("KeyEvents");
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;kev.initKeyEvent("keypress",true,true,window,false,false,false,false,0,t.value.charCodeAt(end-1));
&nbsp; &nbsp;&nbsp; &nbsp;}else{ t.setSelectionRange(start,end);
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;kev=document.createEvent("TextEvent");
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;kev.initTextEvent("textInput",true,true,null,nVal);
&nbsp; &nbsp;&nbsp; &nbsp;} t.dispatchEvent(kev); t.setSelectionRange(start,end);
&nbsp; &nbsp;}else if(document.selection){
&nbsp; &nbsp;&nbsp; &nbsp;a=t.createTextRange(); a.collapse(true); a.findText(nVal); a.select();
&nbsp; &nbsp;} t.focus();
}
</script>
"Advanced" Version. Use a CSS class to set the visual properties of the code area.
Code:
<style type="text/css">
<!--
.jumptocode{width: 730px; height: 594px; background-color: #1E1E34; color: #C3C3D6;}
-->
</style>

<script type="text/javascript">
/* 'Jump to Code' by SubDevo */
/* Go to last code edited by Wormopolis */
/* Main Footer - Please leave this header intact. Do not repost. */
/* [url]http://interoceandesigns.proboards.com[/url] or [url]http://lsdp.proboards.com[/url] */

var nSort=0; // Sort Code Names Alphabetically at Startup. 1=Yes, 0=No
var nClass="jumptocode"; // Name of Class to Style the Code Areas.

if(pb_action=="headersfooters2"){
&nbsp; &nbsp;var nCode=document.createElement("div"),n_D=[],cj=[],bLab="Sort";
&nbsp; &nbsp;var nForm,nArea,nBo,nBn,nInner,lText,stuff,xD,nC,a,i,x;
&nbsp; &nbsp;for(i=0;i<2;i++){ nArea=(i==0)?"header":"footer";
&nbsp; &nbsp;&nbsp; &nbsp;n_D[i]=document.getElementsByName(nArea)[0];
&nbsp; &nbsp;&nbsp; &nbsp;nForm=n_D[i].parentNode; n_D[i].className=nClass;
&nbsp; &nbsp;&nbsp; &nbsp;if(nForm.nodeName=="FONT"){nForm=nForm.parentNode;}
&nbsp; &nbsp;&nbsp; &nbsp;nBo=nForm.parentNode.firstChild; nBo=(nBo.nodeName=="FONT")?nBo.innerHTML:nBo.nodeValue;
&nbsp; &nbsp;&nbsp; &nbsp;nInner=n_D[i].previousSibling.previousSibling; nBn=nBo.slice(21,nBo.indexOf(" header"));
&nbsp; &nbsp;&nbsp; &nbsp;if(!nBn){nBn=nBo.slice(56,nBo.length-1);}
&nbsp; &nbsp;&nbsp; &nbsp;lText=(nBn+" "+nInner.innerHTML).toUpperCase();
&nbsp; &nbsp;&nbsp; &nbsp;nInner.innerHTML=lText+'<hr size="1" class="hr"/>';
&nbsp; &nbsp;&nbsp; &nbsp;stuff='<select size=1 id="cj'+nArea+'" onchange="fText(this.value,'+i+');"><option value="" selected="">'+lText+' Code Jump</option>';
&nbsp; &nbsp;&nbsp; &nbsp;xD=n_D[i].value.split(/\r\n/); nC=[];
&nbsp; &nbsp;&nbsp; &nbsp;if(xD.length<2){xD=n_D[i].value.split(/(\r|\n)/g);}
&nbsp; &nbsp;&nbsp; &nbsp;for(x=0;x<xD.length;x++){
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;if(xD[x].match(/^(<script)/i)){
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;while(!xD[x].match(/^(\/[\/|*]\s)/)){x++;}
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;nC.push(xD[x].replace(/(\/\/\s|\/\*\s|\*\/)/g,""));
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;}
&nbsp; &nbsp;&nbsp; &nbsp;} cj[i]=nC.slice(); x=-1; if(nSort){bLab="Unsort";}
&nbsp; &nbsp;&nbsp; &nbsp;while(nC[++x]){stuff+="<option value='"+nC[x]+"'>"+nC[x]+"</option>";}
&nbsp; &nbsp;&nbsp; &nbsp;nCode.innerHTML='<input type="submit" title="Save Code" accesskey="s" value="Save Changes"/> <input type="reset" title="Undo Changes" value="Reset" accesskey="r" onClick="reset"/> '+stuff+'</select> <input type="button" id="j'+nArea+'" value="'+bLab+'" title="Sort/Unsort Code Titles" accesskey="a" onClick="gCode(this.id,'+i+')"/>';
&nbsp; &nbsp;&nbsp; &nbsp;n_D[i].parentNode.insertBefore(nCode.cloneNode(true),n_D[i].previousSibling);
&nbsp; &nbsp;} nSort= !nSort; gCode("jheader",0); nSort= !nSort; gCode("jfooter",1);
&nbsp; &nbsp;setTimeout("changeCode()",2000);
}
function changeCode(){
&nbsp; &nbsp;var n=(document.cookie.match(/lastCodeEdited=(.*?)(;|$)/))?RegExp.$1.split("±"):0;
&nbsp; &nbsp;if(n){fText(n[1],n[0]);}
}
function gCode(nID,nH){ var nOpt=[];
&nbsp; &nbsp;nSort= !nSort; nOpt=cj[nH].slice(); if(nSort){nOpt.sort();}
&nbsp; &nbsp;document.getElementById(nID).value=(nSort)?"Unsort":"Sort";
&nbsp; &nbsp;var nJ=document.getElementById("c"+nID),a,i=-1; nJ.selectedIndex="0";
&nbsp; &nbsp;while(nOpt[++i]){ a=nJ.options[i+1];
&nbsp; &nbsp;&nbsp; &nbsp;a.text=nOpt[i]; a.value=nOpt[i];
}}
function fText(nVal,nT){
&nbsp; &nbsp;var exptime=new Date(),t=n_D[nT],start,end,kev,a;
&nbsp; &nbsp;if(nVal==""||t.value.indexOf(nVal)==-1){return;}
&nbsp; &nbsp;exptime.setMinutes(exptime.getMinutes()+10);
&nbsp; &nbsp;document.cookie="lastCodeEdited="+nT+"±"+nVal+"; expires="+exptime.toUTCString();
&nbsp; &nbsp;nVal=" "+nVal; start=t.value.indexOf(nVal); end=start+nVal.length;
&nbsp; &nbsp;t.scrollTop=t.scrollHeight;
&nbsp; &nbsp;if(t.setSelectionRange){
&nbsp; &nbsp;&nbsp; &nbsp;if(!window.TextEvent){ t.setSelectionRange(end-1,end);
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;kev=document.createEvent("KeyEvents");
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;kev.initKeyEvent("keypress",true,true,window,false,false,false,false,0,t.value.charCodeAt(end-1));
&nbsp; &nbsp;&nbsp; &nbsp;}else{ t.setSelectionRange(start,end);
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;kev=document.createEvent("TextEvent");
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;kev.initTextEvent("textInput",true,true,null,nVal);
&nbsp; &nbsp;&nbsp; &nbsp;} t.dispatchEvent(kev); t.setSelectionRange(start,end);
&nbsp; &nbsp;}else if(document.selection){
&nbsp; &nbsp;&nbsp; &nbsp;a=t.createTextRange(); a.collapse(true); a.findText(nVal); a.select();
&nbsp; &nbsp;} t.focus();
}
</script>
EDIT: The code above is an updated version. If you are already using "Jump to Code", and you do not have "sort" buttons, please get this version. In this version, single quotes ' and double quotes " are allowed in the code titles. Also includes Code Area resize capability using pixels instead of cols and rows.

EDIT 2:
I changed the variable nD to n_D in the fText function, to make it "unique". This helps avoid conflicts with any codes that use "nD" as a variable.

EDIT 3: 9/09/2009
Made a very small (two words) code change to ensure no partial code title matches when "jumping" to a code.

EDIT 4: 3/23/2010
Updated code for compatibility with Safari and Chrome. With partial functionality in Opera.

EDIT 5: 3/24/2010
Made a boo boo with previous update. FF broke. Fixed now. :)

EDIT 6: 2/03/2011
Using FF, sometimes the jumps and buttons would not show. Fixed.

EDIT 7: 8/15/2011
The code now remembers the last code you edited (for 10 min) and it will instantly jump to that code when you go back to your code area. Also, when a code is selected, it will now scroll to the top of the code area.

SubDevo
« Last Edit: Aug 15, 2011, 5:41am by SubDevo »Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
RADesign
Administrator
member is offline

[avatar]


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 1,601
Location: IOD
Karma: 136
 Re: Jump to Code
« Reply #1 on May 23, 2009, 1:03am »

Good lord man .. you come up with the most awesome codes!!! :-*
Link to Post - Back to Top  IP: Logged

[image]
Mac
Senior Member
member is offline

[avatar]


[homepage]

Joined: Apr 2009
Gender: Male
Posts: 828
Location: Wales
Karma: 22
 Re: Jump to Code
« Reply #2 on May 23, 2009, 3:32pm »

quality
Link to Post - Back to Top  IP: Logged

[image]


Super Dave
Junior Member
member is offline

[avatar]

I'm on a boat!



Joined: Apr 2009
Gender: Male
Posts: 77
Location: Toledo,Ohio
Karma: 2
 Re: Jump to Code
« Reply #3 on May 26, 2009, 9:23pm »

No doubt man,where do ya come up with these ideas bro??

I want two of whatever your smoking,lol..

I cant wait till I get off work tomorrow so I can try this one out.. ;D


Well I am using it now and its sweet bro! I just gotta edit the codes headers so they all will appear,lol..Not all have the names to them..Great code my friend!
« Last Edit: May 27, 2009, 8:09pm by Super Dave »Link to Post - Back to Top  IP: Logged

I'm Dave.... an all around cool guy! lol..
Paige
Senior Member
IOD's Music/Drama Queen
member is offline

[avatar]

On Hiatus, to RPG world

[yim] [msn]

Joined: Apr 2009
Gender: Female
Posts: 547
Location: Malaysia
Karma: 6
 Re: "Jump to Code"
« Reply #4 on Jun 12, 2009, 10:36pm »

Awesome!Thanks!
I wonder can I use it here?I don't know should I add it,cause you guys had added codes in it and I don't really understand...Now I am not sure should I add others...
« Last Edit: Jun 12, 2009, 10:39pm by Paige »Link to Post - Back to Top  IP: Logged


[image]
Quacker Jack
New Member
member is offline





Joined: Sept 2009
Gender: Male
Posts: 21
Karma: -1
 Re: "Jump to Code"
« Reply #5 on Sept 6, 2009, 10:52pm »

Dude, you are the next SoCal with what you are producing. You are making awesome dreams reality. Keep it up!
Link to Post - Back to Top  IP: Logged
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: "Jump to Code"
« Reply #6 on Sept 9, 2009, 11:18am »


Sept 6, 2009, 10:52pm, Quacker Jack wrote:
Dude, you are the next SoCal with what you are producing. You are making awesome dreams reality. Keep it up!


Ya sure! lol All I can do is try my best. ;)

Code Update!

I made a very small (two words) code change to ensure no partial code title matches when "jumping" to a code.

Regards,
SubDevo
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
missy
Guest
 Re: "Jump to Code"
« Reply #7 on Oct 3, 2009, 7:34pm »

What an amazing code. Awesome accomplishment
Link to Post - Back to Top  IP: Logged
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: "Jump to Code"
« Reply #8 on Oct 5, 2009, 6:14pm »


Oct 3, 2009, 7:34pm, missy wrote:
What an amazing code. Awesome accomplishment


Thanks Missy. :) I personally love this code. The reason I made it, was for me. I was getting frustrated trying to find codes quickly, when making changes or adjustments. (Also the reason for my Member And Admin Jumps).

Are you using it? If so, did you have any problems?

SubDevo
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
Paige
Senior Member
IOD's Music/Drama Queen
member is offline

[avatar]

On Hiatus, to RPG world

[yim] [msn]

Joined: Apr 2009
Gender: Female
Posts: 547
Location: Malaysia
Karma: 6
 Re: "Jump to Code"
« Reply #9 on Mar 23, 2010, 12:08pm »

Sub...
Now with your updated code,it won't work well on FF...

http://honeyhyun.proboards.com

Is that my code clash or the Jump To Code just won't work?
Link to Post - Back to Top  IP: Logged


[image]
SubDevo
Co-Admin
Code Support
member is offline

[avatar]

Creator of LSD...


[homepage]

Joined: Mar 2009
Gender: Male
Posts: 2,594
Location: MI, USA
Karma: 102
 Re: "Jump to Code"
« Reply #10 on Mar 23, 2010, 2:03pm »


Mar 23, 2010, 12:08pm, Paige wrote:
Sub...
Now with your updated code,it won't work well on FF...

http://honeyhyun.proboards.com

Is that my code clash or the Jump To Code just won't work?


My god Paige! Thank you! I made a mistake in the code! I was so busy making it work with Safari and Chrome that I guess I "assumed" it still worked in FF.
Ok, I updated the code. Get another copy and try it. Let me know if you still have any problems...

SubDevo
Link to Post - Back to Top  IP: Logged

[image] [image]
[image]
Why are you looking at my signature, [ME]?
Paige
Senior Member
IOD's Music/Drama Queen
member is offline

[avatar]

On Hiatus, to RPG world

[yim] [msn]

Joined: Apr 2009
Gender: Female
Posts: 547
Location: Malaysia
Karma: 6
 Re: "Jump to Code"
« Reply #11 on Mar 23, 2010, 9:47pm »


Mar 23, 2010, 2:03pm, SubDevo wrote:

My god Paige! Thank you! I made a mistake in the code! I was so busy making it work with Safari and Chrome that I guess I "assumed" it still worked in FF.
Ok, I updated the code. Get another copy and try it. Let me know if you still have any problems...

SubDevo


LOLLL Sub..You're welcome.
It works now,and I am sure you wanna announce the change of codes again.Hahas..
Nice work! ;)
You just came back and this place is flowing with all new codes,nice!!

Just hope somewhere I can find someone who codes Zetaboards as good as you do.

Kekeke
Link to Post - Back to Top  IP: Logged


[image]
OJ
Moderator
member is offline

[avatar]

[yim] [msn]
[homepage]

Joined: Nov 2010
Gender: Male
Posts: 976
Location: California
Karma: 53
 Re: "Jump to Code"
« Reply #12 on Dec 12, 2010, 7:18pm »

www.xtrm-elites.proboards.com


Hi, for some reason I am having problems with this code. I already made sure I followed all of Sub's instructions, but it still doesn't work for all my headers/footers. Specifically with my Global and Main. Could someone help me out?
« Last Edit: Dec 12, 2010, 7:19pm by OJ »Link to Post - Back to Top  IP: Logged

[image]
GFX Support
GFX Designer
member is offline

[avatar]

Off duty



Joined: Apr 2009
Gender: Male
Posts: 1,962
Karma: 75
 Re: "Jump to Code"
« Reply #13 on Dec 13, 2010, 5:14am »


Dec 12, 2010, 7:18pm, OJ wrote:
Hi, for some reason I am having problems with this code. I already made sure I followed all of Sub's instructions, but it still doesn't work for all my headers/footers. Specifically with my Global and Main. Could someone help me out?


First of, get ALL your css styles into ONE statement. So instead of this:

<style type="text/css">
.titlebg{background-image: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/title_background.png);}
</style>


<style type="text/css">
.windowbg{background-image: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/window_bg.jpg);}
</style>


<style type="text/css">
<!--
.windowbg2 {background-image: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/window_bg.jpg); background-repeat: repeat;}
-->
</style>


...make it like this:

<style type="text/css">
body {
scrollbar-base-color: #080808;
scrollbar-arrow-color: #FFCC00;
scrollbar-3dlight-color: #080808;
scrollbar-darkshadow-color: #080808;
scrollbar-face-color: #080808;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #383838;
scrollbar-track-color: #1A1A1A;
}
.titlebg {background-image: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/title_background.png);}
.catbg {background-image: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/category_bg.jpg); background-repeat: repeat;}
.newstitlebg {background-image: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/title_background.png); background-repeat: repeat;}
.windowbg {background-image: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/window_bg.jpg);}
.windowbg2 {background-image: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/window_bg.jpg); background-repeat: repeat;}
.subcatbg {background-image: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/cat_bg.jpg);}
.miniprofile {background-color: #080808; background: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/mini_profile_middle.png);}
.minigrad {background-color: #080808; background: url(http://i918.photobucket.com/albums/ad28/ravyoshi26/miniprofilegradient.png);}
.minifont {font-family: Arial; color: #FFFFFF;}
.minigradfont {font-family: Arial; font-weight: bold; color: #AFAFAF;}
.tabbg {background-color: <img src="http://i918.photobucket.com/albums/ad28/ravyoshi26/windowbg.png"/>; border-bottom: 1px solid #FFCC00; border-right: 1px solid #FFCC00;}
.tabbgselected {background-color: <img src="http://i918.photobucket.com/albums/ad28/ravyoshi26/windowbg.png"/>; border-bottom: 0px solid #080808; border-right: 1px solid #FFCC00;}
#pro_tabs td, #pro_sidebar td {font-size: 10pt; font-weight: bold; text-align: center;}
#pro_tabs td {width: 33%; cursor: pointer;}
#pro_content {font-size: 10pt; text-align: left; padding: 10px;}
#pro_threads {font-size: 10pt; font-weight: bold; line-height: 1.5em; text-align: left;}
#holder {width: 100%;}
#leftbox {width: 20%; float: left;}
#rightbox {width: 77%; float: left; position: relative; left: 14px;}
#eventbox {width: 99%; float: left;}
#padding {padding: 2px;}
#area {border: 1px solid #383838; text-align: left; width: 100%; padding: 4px;}
#onlinearea {border: 1px solid #383838; border-top-style: none; text-align: left; width: 100%; padding: 4px;}
.jumptocode{width: 600px; height: 600px; background-color: #080808; color: #FFFFFF;}
.navcombo {color: #FFCC00; position: relative; text-align: left; padding-top: 2px; top: 2px; border: 0px solid #000000;}
</style>


Secondly, set all your javascript code using the SAME tags. In stead of using this in one code:

<script type="text/javascript">
CODE
</script>


...and this in another code:

<script type="text/javascript">
<!--
CODE
// -->
</script>


...or this in yet another code:

<script>
<!--
CODE
//-->
</script>


Just use this in EVERY tag:

<script type="text/javascript"><!--
CODE
// --></script>



DO NOT use any EMPTY first lines in the remarks...!

<script type="text/javascript">
<!--

/*                  
*                   Dynamically Tabbed Welcome Table v2
* Generated by the DTT Generator
* Created By Jordan a.k.a. Triad
* http://support.proboards.com
*/


Use this instead:

<script type="text/javascript"><!--
/* Dynamically Tabbed Welcome Table v2 */
/* Generated by the DTT Generator */
/* Created By Jordan a.k.a. Triad */
/* http://support.proboards.com */



Make sure ALL remarks have the same layout. So don't use this:

/* Subject Required in PM */
// by Wormopolis
// Do Not Repost - keep header intact
// version 1


...but this:

/* Subject Required in PM */
/* by Wormopolis */
/* Do Not Repost - keep header intact */
/* version 1 */



I also found this script which doesn't have a remark!

<script type="text/javascript">
<!--

DTT.init();

//-->
</script>


So, change it to something like this:

<script type="text/javascript"><!--
/* I don't know what this code does */
DTT.init();
//--></script>


And this:

<script type="text/javascript">
/*=======================================
Ultimate Info Center V3
Created by hey
You may edit this code however you wish, as long as you
keep this copyright intact and you don't repost this script
=======================================*/


...should be like this:

<script type="text/javascript"><!--
/* Ultimate Info Center V3 */
/* Created by hey */
/* You may edit this code however you wish, as long as you */
/* keep this copyright intact and you don't repost this script */



And I think this is causing a problem to:

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
/* Translate Post v1.0 */
// Copyright 1-21-2010 by ~Wonder
// May not be reposted anywhere
// Put in Global Footer. Do not edit.


See if this works:

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
/* google jsapi script */

<script type="text/javascript"><!--
/* Translate Post v1.0 */
/* Copyright 1-21-2010 by ~Wonder */
/* May not be reposted anywhere */
/* Put in Global Footer. Do not edit. */


Also, you could try placing the "Jump to code" a little lower in your Main Footer.
Link to Post - Back to Top  IP: Logged

I'm off duty! For questions or support please contact RADesign or Speed Demon.
OJ
Moderator
member is offline

[avatar]

[yim] [msn]
[homepage]

Joined: Nov 2010
Gender: Male
Posts: 976
Location: California
Karma: 53
 Re: "Jump to Code"
« Reply #14 on Dec 13, 2010, 2:12pm »

Wow, and I thought I had it all right. lol
Thanks RAD, once again you have proven yourself very helpful. :)
Link to Post - Back to Top  IP: Logged

[image]
Page 1 of 3 » Jump to page   Go    [Search This Thread] [Share Topic] [Print]

Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile