Perhaps I wasn't clear, I didn't know what program to use in Ubuntu to program this code (or compile it? basically get it done and usable). I was hoping for advice that would make this easier. I haven't done any of the coding yet but I can picture what it should look like in my head.
I don't think the code is particularly difficult, I think it is just a couple of loops. I am certain that I don't have the formatting correct, but here is what core of the code should convey
Thank you for any and all help,
AK
Note: I used curly brackets to enclose text that printed, I don't know what the standard is, but doing this made enclosing the code in php brackets go all wonky. So I've enclosed them in code brackets.
Code:
//Call out variables
numbers: col, row, rcount, ccount, ctemp, up, dwn
ccount=01
rcount=01
//Ask for number of columns
print: {Enter the number of columns (greater than 2) as two digits?}
input: col
//Ask for number of rows
print: {Enter the number of rows (greater than 3) as two digits?}
input: row
//Row Loop
for rcount = 01 to (row-2)
//Column Loop, I want all of the columns done before it goes to the next row
for ccount = 01 to (col-1)
print: {<a name="} ccount {-} rcount {"></a>}
print: {<img class="block" src="images/} ccount {-} rcount {.jpeg">}
print: {<img class="block" src="images/} ccount+1 {-} rcount {.jpeg">}
print: {<img class="block" src="images/} ccount {-} rcount+1 {.jpeg">}
print: {<img class="block" src="images/} ccount+1 {-} rcount+1 {.jpeg">}
print: {<img class="block" src="images/} ccount {-} rcount+2 {.jpeg">}
print: {<img class="block" src="images/} ccount+1 {-} rcount+2 {.jpeg">}
if rcount = 01
//up button link dies if we are on the top row
dwn = rcount+1
print {<img class="control" src="images/up.jpeg">}
print {<a href="#} ccount {-} dwn+1 {"><img class="control" src="images/down.jpeg"></a>}
else if rcount = row-2
//dwn button link dies if we are on the bottom row
up = rcount-1
print {<a href="#} ccount {-} up-1 {"><img class="control" src="images/up.jpeg"></a>}
print {<img class="control" src="images/down.jpeg">}
else
//both buttons are alive
up = rcount+1
dwn = rcount-1
print {<a href="#} ccount {-} up {"><img class="control" src="images/up.jpeg"></a>}
print {<a href="#} ccount {-} dwn {"><img class="control" src="images/down.jpeg"></a>}
Bookmarks