Forums / Setup & design / dynamic images as a banner
Claudia Neu
Tuesday 10 January 2006 8:46:39 am
Hello,
is there a possibility changing images in a template depending on any action? I mean, if the user clicks at a buttom the banner image should change.
Must i code this dynamically or is it just a possible feature of ez Publish? It will be good having a destined image for every action.
Thank you in advance for your soon help.
Greetings
Tore Skobba
Wednesday 11 January 2006 1:21:51 am
Hi
If I understand you right then it is possible to with eZ with a small bit of template code, you can check out my own page if this is what you were thinking about:
http://www.skobba.com/about/about_me/(node_id)/155
Click the photos in the black banner beneath the large photo.
Cheers
Wednesday 11 January 2006 1:44:49 am
Hi Tore,
first thank you for a near solution.
I tried with ------------------------------------------------------------------------ {literal} <script language="JavaScript"> var i= 1 function bilderTauschen1() { document.images[0].src="mal" + i +".jpg"; i++; if(i==2)i=1 } </script>{/literal}-------------------------------------------------------------------------
but I guess thereĀ“s something wrong. Maybe the reason is Xhtml?
It should looks like the different images which change by click at the black menue buttons "Beratung" | "Veranstaltungen" | and so on at www.jdk.de
Thank you very much for your help.
Claudia
Wednesday 11 January 2006 2:34:01 am
hmm but at www.jdk.de each information page probably has its own banner. If I was you then I would make an new customized class which had an banner image. Then with template code show the banner and the content. I do not know enough of Javascript technology in order to help you with image displaying with javascript