It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Need Javascript Help for Display Images

Need Javascript Help for Display Images

Postby devtamil on Fri Sep 21, 2007 10:29 am

Hai everyone, i am new to javascript.

Now i am doing one Image gallary application. In that application i have upload two images, one for Befor image and another one for after image.

All those images are stored into the filesystem, the images names only stored into the database.

Left side of page: Before Pictures (One picture showing, date, description details).

On picture shown (if there are other pictures, there is a button called Next that can be pressed and the picture on the Before side is switched.)

Picture is surrounded by a black frame(i.e: black background) that looks like a picture frame.

Right side of page: After Pictures (initially greyed out, one picture showing, date, description details).

A button called View After Picture will reveal the picture and the related description entry. Would be nice to have an image of two hands covering a face opening up for the reveal.

Every page will also have Google Adwords on the right hand column

I had search the images and store and retrive through vector from the Java action class to jsp page.

i need to do with my application as in the following link

http://www.flickr.com/photos/pensiero/1356284303/

please visit this link, i need to do the same functionality on right side of this site as pensiero's photostream.

Please help me anybody

Thanks in Advance
devtamil
 
Posts: 8
Joined: Mon May 14, 2007 5:06 am

Postby bobbyblades on Fri Sep 21, 2007 6:59 pm

well if your new to javascript this one will be tough, use php to create a javascript array of the image names from the database, then when you want to change images just go to the next or previous element in the array. as far as implementing the images scrolling when the button is pushed youll have to create custom code for that or look on the internet for a simple div scroller which you can hack to fit the project.
User avatar
bobbyblades
50+ Club
 
Posts: 85
Joined: Fri Aug 24, 2007 8:38 pm
Location: hawaii or bust

Postby devtamil on Sat Sep 22, 2007 5:27 am

Hai
Thanks for your reply.

Now i am doing th Page Navigation concept in java.
I think that, it will be done with Ajax is powerful? please suggest me.

Like the page Navigation concept is done by using jsp page. That Jsp page will be called by Ajax is powerful or not. Plese reply me

Again Thanks for your Replies
devtamil
 
Posts: 8
Joined: Mon May 14, 2007 5:06 am

Postby dafunkymunky on Mon Oct 01, 2007 7:55 pm

url of any imag object can be changed dynamically using

document.getElementById('name').src=url('yourIMGurlHere')

and i dont understand your second post.. i guess simple javascript combined with ajax to get list of images, will be enough.. i'm also doing something similar for my site. will be completed by this weekend.. you can check it out..
--------DAFUNKYMUNKY--------
::THE::NECESSARY::[D]EVIL::
....errr i mean munky....
User avatar
dafunkymunky
100+ Club
 
Posts: 183
Joined: Fri Apr 08, 2005 7:32 am
Location: India


Who is online

Users browsing this forum: No registered users and 3 guests