Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    change textlink into image

    Hi all

    I have generated a form in Joomla 2.5 with an extension called 'Chronoform'. The form has different panels that can be opnened and closed by clicking a link. I want to change this link into an image and I presume it should be done by HTML/CSS in the generated php code. However, I have no idea how to do this... All help is highly appreciated.

    This is a piece of code of the link. The word 'taartvorm' should be an image.

    Code:
    <?php if(isset($pane)){echo $pane->startPanel("taartvorm", "cf_container_2");} ?>
    <input type="hidden" name="taartvorm" value="" alt="ghost" />
    <div class="ccms_form_element cfdiv_radio" id="taartvorm1_container_div" style="">

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,326
    Thanks
    30
    Thanked 870 Times in 868 Posts
    Your PHP means nothing to us, because we don't know what $pane, cf_container_2, or startPanel is. Your HTML does not have link in it.

    But to add an image to an anchor in HTML do this:
    Code:
    <body>
    <a href="ajax.php"><!--  PUT YOUR HREF HERE  -->
    	<img src="images/1.jpg" alt="logo" name="IMAGE.1" width="529" border="0" height="72">
    </a>
    </body>
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

  3. #3
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your reply. Unfortunately, that doesn't help me very much. Maybe I haven't supplied enough information. This is the form I am talking about:

    http://www.vitaminey.nl/taartconfigurator

    The titels of the panels should be images and I don't know how to put that in the PHP code. If I need to provide more php code, please let me know.

    Thanks.

  4. #4
    New to the CF scene
    Join Date
    Jan 2014
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just to let you guys know, I have found an easy solution (almost too easy )

    Code:
    <?php if(isset($pane)){echo $pane->startPanel("<img src='../images/yourimage.png'/>", "cf_container_2");} ?>
    That should do the trick.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •