The Daily Click ::. Forums ::. General Chat ::. images stuff script thing
 

Post Reply  Post Oekaki 
 

Posted By Message

:JULI@N:



Registered
  14/07/2002
Points
  641
14th February, 2004 at 19:37:05 -

gotta love the titles of my posts...
whatever
do someone knows how, or where can i get the script, to have one image, then click some sort of button, and that it changes to another one? this is for my webpage. i'm talking about some kind of image selector for my comic, so i haven't to do a htm page for each page. just one with all the images

 
n/a

Kramy



Registered
  08/06/2002
Points
  1888
14th February, 2004 at 22:33:15 -

Yeah, sure, I can send you a script to do that.

Edit: Assuming you have a relatively good understanding of HTML, you should be able to edit the script fine.

Check your email.

Image Edited by the Author.

Edit2: Maybe I should write an article about this?

Image Edited by the Author.

 
Kramy

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
15th February, 2004 at 04:12:49 -

Umno.

Give your image a name, like this:

Image

And get a button

<input type="button" value="loler">

And when you click on the button, change the image source.

<input type="button" value="loler" onClick="lol.src='http://another.image.jpg';">

 
gone fishin'

Kramy



Registered
  08/06/2002
Points
  1888
15th February, 2004 at 12:27:54 -

Hmm...useful until you want to have more than 2 comics. Just use functions like in the script I sent.

 
Kramy

:JULI@N:



Registered
  14/07/2002
Points
  641
15th February, 2004 at 12:39:53 -

yay, thanks kramy. and yes, thanks shen, but i'd have to put like 10 buttons

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
15th February, 2004 at 12:50:51 -

check here: http://www.ministryofklik.com/scorpione/comic%20viewing.txt
It's commented, so you know what each bit does

[edit]Sorry, but there were some errors i forgot about. Works fine now though

Image Edited by the Author.

 
My signature is never too big!!!

Shen

Possibly Insane

Registered
  14/05/2002
Points
  3497
15th February, 2004 at 14:51:48 -

You can do them with a link... <a href="javascript:lol.src='http://new.image';">New piccy</a>

Really, it's better than having a whole page for one.

 
gone fishin'

Kramy



Registered
  08/06/2002
Points
  1888
15th February, 2004 at 17:53:23 -

No problem Juli@n.

Shen: Using functions you can have a next/previous button, then just add/subtract from a counter which stores which image to load.

 
Kramy
   

Post Reply



 



Advertisement

Worth A Click