Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • rajeshgut 29 posts 20 karma points
    May 11, 2009 @ 08:16
    rajeshgut
    0

    How to navigate when click on image

    Hi all,

    Any one please tel me how to navigate to other pages when clicking on image. my website contain images ie., Home,ContactUs,Gallery like that. iam loading those images from media
    my problem is how to navigate to paritcular page when i click on these images(when i click on home it must navigate to homepage). how to give click action to those images, iam just load that images only. what i hve to do..?

    Thanks in advance......

    cheers,
    Rajesh

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    May 11, 2009 @ 08:26
    Dirk De Grave
    0

    Hi,

    How do you load those images? Are you using xslt? Or is it hard-coded?
    Give us some code and I'm sure people will chime in to help you...

    Cheers,
    /Dirk

  • rajeshgut 29 posts 20 karma points
    May 11, 2009 @ 08:55
    rajeshgut
    0
        <br />
            Thanks for reply Dirk, iam loading those images through XSLT, ok iam posting some code pls refer it...<br />
    


    My master template :
    ==============








    <script type="text/JavaScript"><br />
    <!--<br />
    function MM_swapImgRestore() { //v3.0<br />
      var i,x,a=document.MM_sr; for(i=0;a&amp;&amp;i<a.length&amp;&amp;(x=a[i])&amp;&amp;x.oSrc;i++) x.src=x.oSrc;<br />
    }<br />
    <br />
    function MM_swapImage() { //v3.0<br />
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i&lt;(a.length-2);i+=3)<br />
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}<br />
    }<br />
    //--><br />
    </script>







    .........
    .................










    .....
    .......
    ..........



    <-- Actually tag is there before loading image for navigating what i have to write in that place? the code is
    //

    <--this Home image -->


    <--this Gallery image -->




    Actuall template is :
    =============

    ............
    ...............

    style="height: 166px" frame="box">








    ..........
    ...........


    XSLT file for laoding images:






    Pls let me know whether u understand my problem or my code and save me from this.

    Thanks ,
    Rajesh

  • rajeshgut 29 posts 20 karma points
    May 12, 2009 @ 06:41
    rajeshgut
    0

    Hi,

    No body is there to solve my problem? please any one look at my code that i already posted(above post) and help me
    Iam eagerly waiting for response........
    Thanks in advance

    Rajesh

Please Sign in or register to post replies

Write your reply to:

Draft