...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 Link to comment https://forums.phpfreaks.com/topic/81426-hi-newbie-here-looking-for-some-help/ 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 Link to comment https://forums.phpfreaks.com/topic/81426-hi-newbie-here-looking-for-some-help/#findComment-413294 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 Link to comment https://forums.phpfreaks.com/topic/81426-hi-newbie-here-looking-for-some-help/#findComment-413295 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 Link to comment https://forums.phpfreaks.com/topic/81426-hi-newbie-here-looking-for-some-help/#findComment-413297 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 .. Link to comment https://forums.phpfreaks.com/topic/81426-hi-newbie-here-looking-for-some-help/#findComment-413300 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. Link to comment https://forums.phpfreaks.com/topic/81426-hi-newbie-here-looking-for-some-help/#findComment-413303 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 Link to comment https://forums.phpfreaks.com/topic/81426-hi-newbie-here-looking-for-some-help/#findComment-413307 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 Link to comment https://forums.phpfreaks.com/topic/81426-hi-newbie-here-looking-for-some-help/#findComment-413316 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.