Combo Admin

Combo boxes (drop-down menus) are a convenient way of referencing a lot of links in a compact space.  They are particularly useful for storing resource links on a particular subject.  Dynamic HomePage will manage up to nine combo boxes.  Each combo box can have:

If the user has JavaScript turned off or unavailable in their browser, Dynamic HomePage will also output a "Go" button graphic to allow the user to initiate their selected link.

Setting the Combo Links
 

  1. As a logged-in admin user, click the Home Page Admin link from the Home Page, and choose the Combo Admin option.

  2. Choose the Combo box you want to alter, and click the corresponding Edit link.

  3. Output each Combo box to users' browsers can be turned on and off.

  4. Depending on whether your stylesheet uses the External title and if so where on the page it defines its display, the External title will display outside of the combo box itself.

  5. The Internal title will be the top line of the Combo links, and the message the user will see by default on the combo box itself.

  6. Updating combos is as simple as entering the target URLs and link text, separated by a double semi-colon.  One link is registered per line.  Example:

    http://www.yahoo.co.uk;;UK Yahoo
    http://www.google.co.uk;;UK Google
    http://www.altavista.com;;Altavista

  7. Combos can be previewed before committing any changes you have made.  

  8. To confirm any changes you have made, click Update.  (Clicking the Home Page or Home Page Admin links will also confirm your changes.)  To cancel any changes you have made since the last update, click the Cancel Changes link.

Technical Details

These technical details are intended for web designers when setting up a stylesheet.

The sample HTML output below shows how combos are output both in browsers with JavaScript enabled and disabled.  If customised output is required for your home page implementation, please contact the developers.

HTML Output

<!-- Combos Part-->

<!-- Combo "1" -->

<form method="GET" action="http://mysite.com/redirect.php" name="combo_1">

<div class="combo" id="combo_1">

    <span id="ct_1">Combo 1 External Title</span><br>

    <select name="target" onChange="this.form.submit()">

        <option value="" selected>Combo 1 Internal Title</option>

        <option value="">____________________</option>

        <option value="http://www.yahoo.co.uk">UK Yahoo</option>

        <option value="http://www.google.com">UK Google</option>

        <option value="http://www.altavista.com">Altavista</option>

    </select>

    <noscript>

    <input type="image" src="http://mysite.com/images/combos/go_btn.gif"

        border="0" width="20" alt="go!" height="12">

    </noscript>

</div>

</form>

 

<!-- Combo "2" -->

<form method="GET" action="http://mysite.com/redirect.php" name="combo_2">

<div class="combo" id="combo_2">

    <span id="ct_2">Combo 2 External Title</span><br>

    <select name="target" onChange="this.form.submit()">

        <option value="" selected>Combo 2 Internal Title</option>

        <option value="">____________________</option>

        <option value="http://news.yahoo.com">Yahoo News</option>

        <option value="http://news.google.com">Google News</option>

        <option value="http://news.bbc.co.uk">BBC News</option>

    </select>

    <noscript>

    <input type="image" src="http://mysite.com/images/combos/go_btn.gif"

        border="0" width="20" alt="go!" height="12">

    </noscript>

</div>

</form>

<!-- Combos Part end-->

Sample Stylesheet Implementation

The stylesheet is individual to each implementation.  The code below is just an illustration of how it may be implemented.

select {

    color: #000;

    background-color: #FFF;

    font-family: arial, helvetica, sans-serif;

    font-size: 10 px;

    width: 150px;

    }

 

#combo_1, #combo_2 {

    position: absolute;

    z-index: 1;

    }

 

#combo_1 {

    top: 100px;

    left: 25px;

    }

 

#ct_1 {

    display: none;

    }

 

#combo_2 {

    top: 200px;

    left: 25px;

    }