2 Replies Latest reply on Mar 5, 2010 11:03 AM by Basine

    onClick funktion - Behavior (Text)

    Basine Level 1



      I've made a website, but I got some kind of problem.




      When you go to the link above, you see a list of different words.


      When you click on a word, a PDF-file will pop up. BUT!


      I wan't to have a "link"-effect on the text, when i point with my mouse.


      Now it just mark it as text.


      I don't know how to get the link-effect when i'm doing the on'click funktion.
      I know I can make a link in the properties when i mark the text, but i wan't the PDF-file to pop up in a new window.


      HELP! please. (Hope someone understand what I mean)
      - Sabine

        • 1. Re: onClick funktion - Behavior (Text)
          osgood_ Level 8

          For each <td> cell of the list on that page you will need to add onmouseover="this.className='pointer';" as shown below.


          <td onmouseover="this.className='pointer';" height="23" align="center" onclick="MM_openBrWindow('../Løftegrej pdffiler/s. 3.pdf','Sikkerhed','')"><strong><font face="Arial, Helvetica, sans-serif" color="#003399">Sikkerhed</font></strong></td>



          Then you'll have to open your template file that the page was made from and insert the following into the pages code directly before the closing </head> tag near to the top of the page.


          <style type="text/css">
          .pointer {
          cursor: pointer;



          Save the template and the css code above should be automatically updated in all pages made from the template.


          Now when the list of text is moused over a 'hand icon' should appear.

          • 2. Re: onClick funktion - Behavior (Text)
            Basine Level 1

            Thank you so much!
            It works!