Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
transefering variabels between to pages
Old 11-07-2006, 11:07 AM transefering variabels between to pages
Skilled Talker

Posts: 60
Name: tami
Trades: 0
i have a photo gallery that is made of two pages: one is a simple html with Thumbnails and when you press a thimbnail it opens a window with the enlargement of the thumbnail. and you can also step through the pictures in the window with buttons . so i built an array and i have functions for going forward and backwards. and in order to show the picture i have this:
Code:
  
ShowPhoto (Images[loc].src);
//Images is the name of my array
    }
        function ShowPhoto (filename)
    {
        pic.src=filename;
        pic.alt="Filename: "+filename;
        window.status=filename;
 
    }
so loc represents the number of the picture that is going to show. and what i think i need to do is to be able to change loc from the page with the thumbnails according to the thumbnail that is being pressed.
how can i do it? can any bodey help me? thank you
pizza is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-07-2006, 12:17 PM Re: transefering variabels between to pages
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
window.location = "your new page";

Incorporate that into a separate function for your paging buttons and away you go.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 11-07-2006, 12:58 PM Re: transefering variabels between to pages
Skilled Talker

Posts: 60
Name: tami
Trades: 0
in which page do i add this? in the window or the one with the thumbnails?
and how exactly this refer to loc?
pizza is offline
Reply With Quote
View Public Profile
 
Old 11-09-2006, 02:53 AM Re: transefering variabels between to pages
seomumbai's Avatar
Skilled Talker

Posts: 98
Trades: 0
actually where is the declaration path of where should take that thumbnail.
seomumbai is offline
Reply With Quote
View Public Profile
 
Old 11-09-2006, 10:42 AM Re: transefering variabels between to pages
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
pizza: you add it to wherever your paging links are. You'd have to create a separate function for it though, in all likelihood.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Reply     « Reply to transefering variabels between to pages
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15019 seconds with 12 queries