Announcement

Collapse
No announcement yet.

Replace Select A Section

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Replace Select A Section

    I was told to remove a script to replace select a section with a banner, however i cannot find the exact wording i was told to replace in Act_Primary.html with <img scr="filename.jpeg">
    Thanks
    Paul

    Could you tell me what to replace from the section below?


    SCRIPT LANGUAGE="JavaScript" SRC="actiniccore.js" TYPE="text/javascript"></SCRIPT>
    <SCRIPT LANGUAGE="JavaScript" SRC="actinicextras.js" TYPE="text/javascript"></SCRIPT>
    <!--@act NETQUOTEVAR:TOPLEVELSECTIONS_RAW -->

    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    <!--
    /***********************************************************************
    *
    * ACT_DropListBox - returns a string containing the HTML for the SELECT listbox
    *
    ************************************************************************/

    function ACT_DropListBox(ar)
    {
    var strIDs = '<SELECT SIZE="1" NAME="ACT_droplstbox" onChange="if(options[selectedIndex].value) window.location.href=(options[selectedIndex].value)">'
    var sel = " SELECTED"
    strIDs += '<OPTION ' + sel + ' VALUE="">Select a Section</OPTION>'
    for (var i=1;i<=ar.length;i++)
    {
    if (ar[i].sURL !=null)
    {
    strIDs += '<OPTION VALUE="' + ar[i].sURL + '&ACTINIC_REFERRER=' + escape(location.href) + '&NOCLEARFRAMES=1">' + ar[i].sName + '</OPTION>'
    }
    }
    strIDs+='</SELECT>'
    return strIDs
    }
    //-->
    </SCRIPT>

    <!-- Placeholder of cookie checking javascript code. Do not remove it! -->
    <Actinic:COOKIECHECK/>

    <!--
    The NETQUOTEVARs below can be uncommented for getting raw section lists:
    1. Top level section list

    #2
    Sorry i dont know if i made myself clear?

    I want to do away with the "Select a Section" on the header bar at the top of each page and replace it with a banner.

    In the above post what text do i need to remove to get rid of this and where do i place the new script?

    Hope this is a better explanation?

    Paul

    Comment


      #3
      I'm assuming you still want the drop-down select box and only want to remove the text "Select a Section" (it's staring you in the face) and replace this with an image.

      Then keep all of the above but replace the words "Select a Section" with your image code.

      I.e. the line

      strIDs += '<OPTION ' + sel + ' VALUE="">Select a Section</OPTION>'


      becomes something like

      strIDs += '<OPTION ' + sel + ' VALUE=""><img src="filename.jpeg"></OPTION>'


      I'd also recommend you include the image size in taht tag.

      e.g.

      <img src="filename.jpeg" width="100" height="50">

      as this will help the browser display the page without having to resize it once the inage loads.

      Norman
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Hi Norman

        No, i want to replace the box with a banner

        Thanks

        Paul

        Comment


          #5
          From your example above delete everything from

          <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">


          to

          </SCRIPT>

          inclusive. Leave the 1st 3 lines above that lot in place, and everything below it. If you want your banner in the same place then just put it in where you deleted.

          Norman
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Hi Norman

            I did what you said, the select box has gone but banner not showing?
            instead i have a little box top left past my homepage?

            Do i need to upload this picture to a folder anywhere?

            Thanks

            www.islandentertainmentsonline.com

            Comment


              #7
              Hi Norman

              when i upload i get an error message saying that it does not support src= files ?

              and thats what i need to upload??

              Thanks

              Paul

              Comment


                #8
                Unhelpfully, you haven't posted what you did and exactly what error message you get.

                So I have to guess:-

                If you put the image into your Site1 folder and refer to it as <img src="myimage.jpg"> then Actinic should refer to it and upload it just fine.

                If the image isn't on your site then you need to put the full URL <img src="http://www.othersite.com/myimage.jpg">

                Norman
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Hi Norman

                  Sorry for being unhelpful,
                  The image now shows , however i was hoping it would be in the same place as the select a section bar was?

                  Thanks

                  Paul

                  Comment


                    #10
                    I answered this on your other thread.

                    Norman
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      Works a treat thanks Norman

                      Paul

                      Comment

                      Working...
                      X