anatak Posted April 21, 2009 Share Posted April 21, 2009 I would like to open pictures in a new window but if the user clicks the next picture the picture has to open in the same window. I am not sure how to start on this. a perfect example is here http://interlingvo.com/en/profile.php?profile=show&profile_id=223402&with_photos=1&sid=5512d0f00d2129eeee0566536326b923 if you click on a profile picture it opens in a new window. if you click on a different profile picture in opens in the same window. if you go to a different profile and click on a picture it still opens in the same window. how can I do the same thing ? My guess is that it is something with the target attribute of <a> but I am not sure how to do this. any help is appreciated kind regards anatak Quote Link to comment https://forums.phpfreaks.com/topic/155009-how-to-open-pictures-in-a-new-window/ Share on other sites More sharing options...
jesushax Posted April 21, 2009 Share Posted April 21, 2009 it would be with using javscript, and naming the window this will work here http://www.dynamicdrive.com/dynamicindex8/autocenter.htm jsut change the sizes etc so suit Quote Link to comment https://forums.phpfreaks.com/topic/155009-how-to-open-pictures-in-a-new-window/#findComment-815304 Share on other sites More sharing options...
anatak Posted April 21, 2009 Author Share Posted April 21, 2009 thanks will look into that much appreciated although I really try to avoid javascript as much as possible Quote Link to comment https://forums.phpfreaks.com/topic/155009-how-to-open-pictures-in-a-new-window/#findComment-815963 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.