Closed Thread Icon

Topic awaiting preservation: Comic script (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8897" title="Pages that link to Topic awaiting preservation: Comic script (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Comic script <span class="small">(Page 1 of 1)</span>\

 
Android140
Neurotic (0) Inmate
Newly admitted

From: Angel Island
Insane since: Jun 2003

posted posted 10-11-2003 06:15

I am trying to make it to where it displays other images instead of .jpg. Every thing i've tried just makes the whole thing fail. Can anyone help me?

Here is the script:

<SCRIPT language=JavaScript>
$file = ".jpg";
total.innerText="11";

current.innerText=total.innerText;

current.image=$file;

S1.liste1.selectedIndex=Number(current.innerText);

comic.src = "http://aftervision.com/users/andro/comics/gf/" + current.innerText + current.image

</SCRIPT>

<SCRIPT language=JavaScript>

function First(){

current.innerText='1';

current.image=$file;

S1.liste1.selectedIndex=Number(current.innerText);

comic.src = "http://aftervision.com/users/andro/comics/gf/" + current.innerText + current.image

}

function Prev(){

if(current.innerText != 0){

current.innerText--;

current.image=$file;

S1.liste1.selectedIndex=Number(current.innerText);

comic.src = "http://aftervision.com/users/andro/comics/gf/" + current.innerText + current.image

}

}

function Next(){

if (current.innerText != total.innerText){

current.innerText++;

current.image=$file;

S1.liste1.selectedIndex=Number(current.innerText);

comic.src = "http://aftervision.com/users/andro/comics/gf/" + current.innerText + current.image

}

}

function Last(){

current.innerText=total.innerText;

current.image=$file;

S1.liste1.selectedIndex=Number(current.innerText);

comic.src = "http://aftervision.com/users/andro/comics/gf/" + current.innerText + current.image

}

</SCRIPT>

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-13-2003 09:27

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Android140
Neurotic (0) Inmate
Newly admitted

From: Angel Island
Insane since: Jun 2003

posted posted 10-14-2003 17:53

The page is http://andro.aftervision.com/comics/gf

I changed it a little bit but I still have the same problem.

<TABLE>
<!--This is where the comic shows up-->
<DIV align=center><IMG onclick=First() src="http://aftervision.com/users/andro/comics/gf/first.gif"> <IMG
onclick=Prev() src="http://aftervision.com/users/andro/comics/gf/previous.gif"> <IMG onclick=Next()
src="http://aftervision.com/users/andro/comics/gf/next.gif"> <IMG onclick=Last() src="http://aftervision.com/users/andro/comics/gf/last.gif"><br>
<IMG id=comic src="http://aftervision.com/users/andro/comics/gf/0.jpg">
<TBODY></TBODY></TABLE></DIV>
<DIV align=center>
<CENTER>
<DIV>
<TABLE>
<TBODY>
<TR>
<TD><!--Button images-->
<DIV align=center><IMG onclick=First() src="http://aftervision.com/users/andro/comics/gf/first.gif"> <IMG
onclick=Prev() src="http://aftervision.com/users/andro/comics/gf/previous.gif"> <BR>GF: <SPAN
id=current></SPAN>/<SPAN id=total></SPAN> <BR><IMG onclick=Next()
src="http://aftervision.com/users/andro/comics/gf/next.gif"> <IMG onclick=Last() src="http://aftervision.com/users/andro/comics/gf/last.gif">
</DIV>
<HR>
<FORM
id=S1><!--Drop down menu, add comics here with number and title-->
<SELECT size=1 name=liste1>
<OPTION value="" selected>----..::GameForce::..----
<OPTION value=http://aftervision.com/users/andro/comics/gf/1.jpg>1 - "WTF are you looking at!"
<OPTION value=http://aftervision.com/users/andro/comics/gf/2.jpg>2 - "Somebody Needs a HUG!"
<OPTION value=http://aftervision.com/users/andro/comics/gf/3.jpg>3 - "Just in time!"
<OPTION value=http://aftervision.com/users/andro/comics/gf/4.jpg>4 - Evil in the Videogame world.
<OPTION value=http://aftervision.com/users/andro/comics/gf/5.jpg>5 - Some time later...
<OPTION value=http://aftervision.com/users/andro/comics/gf/6.jpg>6 - Sonic looks a bit blue...
<OPTION value=http://aftervision.com/users/andro/comics/gf/7.jpg>7 - Enter Shadow.
<OPTION value=http://aftervision.com/users/andro/comics/gf/8.jpg>8 - TOASTY!!!!!
<OPTION value=http://aftervision.com/users/andro/comics/gf/9.jpg>9 - Cold Chills
<OPTION value=http://aftervision.com/users/andro/comics/gf/10.jpg>10 - AAAH! VOICES!
<OPTION value="11.jpg">11 - "A little help here!"
<OPTION value="12.jpg">12 - "Chaos Spear!"
</OPTION></SELECT>
<INPUT onclick="if (form.liste1.selectedIndex != 0) {&#13;&#10; current.innerText = form.liste1.selectedIndex;&#13;&#10; comic.src = form.liste1.options[form.liste1.selectedIndex].value;}" type=button value=Go>
</FORM></FONT></TD></TR></TBODY></TABLE></DIV>
<!--Edit the number in the first total inner text only.-->
<SCRIPT language=JavaScript>
$file = ".jpg";
total.innerText="12";
current.innerText=total.innerText;
current.image=$file;
S1.liste1.selectedIndex=Number(current.innerText);
comic.src = "http://aftervision.com/users/andro/comics/gf/" + current.innerText + current.image
</SCRIPT>

<SCRIPT language=JavaScript>
function First(){
current.innerText='1';
current.image=$file;
S1.liste1.selectedIndex=Number(current.innerText);
comic.src = "http://aftervision.com/users/andro/comics/gf/" + current.innerText + current.image
}
function Prev(){
if(current.innerText != 0){
current.innerText--;
current.image=$file;
S1.liste1.selectedIndex=Number(current.innerText);
comic.src = "http://aftervision.com/users/andro/comics/gf/" + current.innerText + current.image
}
}
function Next(){
if (current.innerText != total.innerText){
current.innerText++;
current.image=$file;
S1.liste1.selectedIndex=Number(current.innerText);
comic.src = "http://aftervision.com/users/andro/comics/gf/" + current.innerText + current.image
}
}
function Last(){
current.innerText=total.innerText;
current.image=$file;
S1.liste1.selectedIndex=Number(current.innerText);
comic.src = "http://aftervision.com/users/andro/comics/gf/" + current.innerText + current.image
}
</SCRIPT>



[This message has been edited by Android140 (edited 10-14-2003).]

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-14-2003 18:12

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

trib
Paranoid (IV) Inmate

From: Den Haag, Netherlands
Insane since: Sep 2002

posted posted 10-14-2003 18:20

Or use Netscape 7 as your development test browser .. that way you can type javascript: as a URL and pop up a js debugger window which will tell you where your errors are ... line number, filename, attempt at a description ...


Bug-free software only exisits in two places
A programmer's mind and a salesman's lips

[This message has been edited by trib (edited 10-14-2003).]

« BackwardsOnwards »

Show Forum Drop Down Menu