Click to See Complete Forum and Search --> : New Java user needs help!


forrest_horn
09-12-2003, 08:18 AM
I just cut and pasted a Java script code to a site I'm working on. The code is designed to use popups to display photographs and is called "My photo gallery."

Unfortunately, I have no idea what to do next, and the code isn't self-explanatory, at lest to me! Can anyone offer some guidance??

requestcode
09-12-2003, 08:34 AM
We need to see the code to help.

forrest_horn
09-12-2003, 02:23 PM
This code goes between the <head> and </head> tags ...

<link href="pas_gen.css" rel=stylesheet type="text/css">

<script type="text/javascript" src="pas_gen.js" language=javascript></script>

And this code goes between the <body> and </body> tags ...

<form name="form1">

<table border=0 cellpadding=6 cellspacing=4 align=center width=70% class=normal>

<tr valign=top><td class=extra colspan=2>

Photo Album Script Generator</td></tr>

<tr valign=top><td class=simple>Page title:</td>

<td class=simple><input type=text size=25 name="page_title" value="Anne's Angels and More!"></td></tr>

<tr valign=top><td class=simple>Photo gallery title:</td>

<td class=simple><input type=text size=25 name="pht_gal" value="Angels"></td></tr>

<tr valign=top><td class=simple>How many rows:</td>

<td class=simple><input type=text size=3 name="pht_page" value=4></td></tr>

<tr valign=top><td class=simple>Photo in each row:</td>

<td class=simple><input type=text size=3 name="pht_row" value=4></td></tr>

<tr valign=top><td class=simple>Thumb width:</td>

<td class=simple><input type=text size=3 name="thm_width" value=100></td></tr>

<tr valign=top><td class=simple>Thumb height:</td>

<td class=simple><input type=text size=3 name="thm_height" value=75></td></tr>

<tr valign=top><td class=simple>Photo title/description:</td>

<td class=simple><select name="pht_title">

<option value=y SELECTED>Yes

<option value=n>No

</select></td></tr>

<tr valign=top><td class=simple>Select a style sheet:</td>

<td class=simple><select name="def_style">

<option value="1" SELECTED>Style1

<option value="2">Style2

<option value="3">Style3

</select></td></tr>

<tr valign=top><td colspan=2 class=simple>

<input type=button value="Generate" name="done" class=btn onClick=showCode()>

<input type=reset value=" Reset " name="rest" class=btn>

<input type=button value="Preview" name="prev" class=btn onClick=showPrev()></td></tr>

</table>

</form>

<CENTER>

<A HREF="javascript:self.close();">

<IMG SRC="exit.gif" BORDER=0 WIDTH=20 HEIGHT=20 ALT="Close"></A>

</CENTER>

Mr J
09-13-2003, 01:42 PM
We need to see the Javascript code as well