...Gav Posted December 13, 2007 Share Posted December 13, 2007 Hi there, Im quite new to php. But i want to create some rollover images in php that are clickable, then when the item is clicked a section of that page changes (so the page stays the same, just a text field changes that is relevant to the image clicked) Can anyone point me into the right direction on how to do this? Many thanks Gav Quote Link to comment Share on other sites More sharing options...
teng84 Posted December 13, 2007 Share Posted December 13, 2007 that is no php that is JAVASCRIPT OR AJAX OR MAYBE CSS Quote Link to comment Share on other sites More sharing options...
...Gav Posted December 13, 2007 Author Share Posted December 13, 2007 I know that the image rollovers can be Java so if thats the best way i will do it like that but the opening a section within the same page (bit like an iframe) i know that is php but unsure on how to do it Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted December 13, 2007 Share Posted December 13, 2007 If you wanted to avoid AJAX for the moment, you woudl llload all the images and text into arays within the javascripot. then you woudl use the javascript on teh client to create teh rollover and text change. i think you woudl want to look at "nodes" in javascript - could someoen please confirm this? gdlk Quote Link to comment Share on other sites More sharing options...
teng84 Posted December 13, 2007 Share Posted December 13, 2007 im pretty sure you need ajax to do this click the image and loads the content of that image on the same page without reloading am i right? rollover can be done in css alone or with js .. Quote Link to comment Share on other sites More sharing options...
...Gav Posted December 13, 2007 Author Share Posted December 13, 2007 im pretty sure you need ajax to do this click the image and loads the content of that image on the same page without reloading am i right? rollover can be done in css alone or with js .. Yea, thats exactly what iam looking for. Quote Link to comment Share on other sites More sharing options...
teng84 Posted December 13, 2007 Share Posted December 13, 2007 http://www.w3schools.com/php/php_ajax_database.asp that should give an idea Quote Link to comment Share on other sites More sharing options...
...Gav Posted December 13, 2007 Author Share Posted December 13, 2007 I will give that a go Thank you Quote Link to comment 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.