You need to sign in to do that
Don't have an account?

show hide images
I have an requirement-
i have two images which should be invisible by default .
When a button is clicked , first button should be visible and second should be in invisible mode.
And when clicked again the second button should be visible.
Can we make images invisible by default in VF.
Can anyone help me with soln.
Thanks in advance.
use rendered parameter..in this example i have use it to show diff images to diff profile when they log in ...
All Answers
use rendered parameter..in this example i have use it to show diff images to diff profile when they log in ...
Hey thanks a lot for the quick reply.
Thats awesome i was trying it out to figure out using javascript.
This is the exact soln.
Thanks again.
cheers!
Here we can check only one condition . that is image is dispalyed when Profile name is custportaluser what about if i need to heck other condution user name = shaan.
can we use rendered parameter to check two conditions.
ex:
" />
<apex:image url="{!$Resource.hp}" rendered="{!$Profile.Name='Customer Portal Manager'}"/>
</apex:page>