SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot pannick's Avatar
    Join Date
    Aug 2003
    Location
    Florida
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Trying to get script to work

    I am trying to get this script to work on my website www.floridahorsetrader.com I want the classifieds section to open to another page and it will not. Any tips would greatly be appreciated.

    Thanks
    /***********************************************************************************
    * (c) Ger Versluis 2000 version 5.41 24 December 2001 *
    * For info write to menus@burmees.nl *
    * You may remove all comments for faster loading *
    ***********************************************************************************/

    var NoOffFirstLineMenus=14; // Number of first level items
    var LowBgColor='3366CC'; // Background color when mouse is not over
    var LowSubBgColor='3366CC'; // Background color when mouse is not over on subs
    var HighBgColor='FFCC00'; // Background color when mouse is over
    var HighSubBgColor='FFCC00'; // Background color when mouse is over on subs
    var FontLowColor='FFFFFF'; // Font color when mouse is not over
    var FontSubLowColor='FFFFFF'; // Font color subs when mouse is not over
    var FontHighColor='000000'; // Font color when mouse is over
    var FontSubHighColor='000000'; // Font color subs when mouse is over
    var BorderColor='FFCC00'; // Border color
    var BorderSubColor='FFCC00'; // Border color for subs
    var BorderWidth=1; // Border width
    var BorderBtwnElmnts=1; // Border between elements 1 or 0
    var FontFamily="verdana,arial,technical" // Font family menu items
    var FontSize=7.5; // Font size menu items
    var FontBold=1; // Bold menu items 1 or 0
    var FontItalic=0; // Italic menu items 1 or 0
    var MenuTextCentered='left'; // Item text position 'left', 'center' or

    'right'
    var MenuCentered='left'; // Menu horizontal position 'left', 'center' or

    'right'
    var MenuVerticalCentered='top'; // Menu vertical position 'top',

    'middle','bottom' or static
    var ChildOverlap=.1; // horizontal overlap child/ parent
    var ChildVerticalOverlap=.2; // vertical overlap child/ parent
    var StartTop=0; // Menu offset x coordinate
    var StartLeft=0; // Menu offset y coordinate
    var VerCorrect=0; // Multiple frames y correction
    var HorCorrect=0; // Multiple frames x correction
    var LeftPaddng=6; // Left padding
    var TopPaddng=4; // Top padding
    var FirstLineHorizontal=0; // SET TO 1 FOR HORIZONTAL MENU, 0 FOR

    VERTICAL
    var MenuFramesVertical=0; // Frames in cols or rows 1 or 0
    var DissapearDelay=1000; // delay before menu folds in
    var TakeOverBgColor=1; // Menu frame takes over background color subitem

    frame
    var FirstLineFrame='navig'; // Frame where first level appears
    var SecLineFrame='space'; // Frame where sub levels appear
    var DocTargetFrame='space'; // Frame where target documents appear
    var TargetLoc='MenuPos'; // span id for relative positioning
    var HideTop=0; // Hide first level when loading new document 1 or

    0
    var MenuWrap=1; // enables/ disables menu wrap 1 or 0
    var RightToLeft=0; // enables/ disables right to left unfold 1 or

    0
    var UnfoldsOnClick=0; // Level 1 unfolds onclick/ onmouseover
    var WebMasterCheck=0; // menu tree checking on or off 1 or 0
    var ShowArrow=0; // Uses arrow gifs when 1
    var KeepHilite=1; // Keep selected path highligthed
    var Arrws=['space.gif',0,0,'space.gif',0,0,'space.gif',0,0]; // Arrow source, width and

    height

    function BeforeStart(){return}
    function AfterBuild(){return}
    function BeforeFirstOpen(){return}
    function AfterCloseAll(){return}


    // Menu tree
    // MenuX=new Array(Text to show, Link, background image (optional), number of sub elements,

    height, width);
    // For rollover images set "Text to show" to: "rollover:Image1.jpg:Image2.jpg"

    Menu1=new Array("Home Page","index.php","",0,23,148);

    Menu2=new Array("E-Mail Us","mailto:info@floridahorsetrader.com","",0,23,148);

    Menu3=new Array("About Us","","",3,23,148);
    Menu3_1=new Array("Privacy Policy","privacy.php","",0,20,148);
    Menu3_2=new Array("Frequently Asked Questions","faq.php","",0,40,148);
    Menu3_3=new Array("Kelly Oliver","kelly_oliver.php","",0,30,148);


    Menu4=new Array("Ask Us","","",2,23,148);
    Menu4_1=new Array("Ask The Trainer","ask_kelly.php","",0,20,148);
    Menu4_2=new Array("Archives","qna_oct.php","",0,20,148);

    Menu5=new Array("Associations","associations.php","",0,23,148);

    Menu6=new Array("Breeds","","",8,23,148);
    Menu6_1=new Array("Breeds >>","","",0,20,148);
    Menu6_2=new Array("American Mustang","mustang.php","",0,20,148);
    Menu6_3=new Array("American Paint","american_paint.php","",0,20,148);
    Menu6_4=new Array("American Warbmlood","american_warmblood.php","",0,20,148);
    Menu6_5=new Array("Andalusian","andalusian.php","",0,20,148);
    Menu6_6=new Array("Appaloosa","appaloosa.php","",0,20,148);
    Menu6_7=new Array("Arabian","arabian.php","",0,20,148);
    Menu6_8=new Array("Paso Fino","paso_fino.php","",0,20,148);

    Menu7=new Array("Business Directory","businesseslist.php","",15,23,148);
    Menu7_1=new Array("Featured Equine Business Listings","businesseslist.php","",0,40,148);
    Menu7_2=new Array("Barn Construction","barns_construction.php","",0,20,148);
    Menu7_3=new Array("Equine and Farm Insurance","insurance.php","",0,35,148);
    Menu7_4=new Array("Farms and Stables","farms_stables.php","",0,20,148);
    Menu7_5=new Array("Farriers","farriers.php","",0,20,148);
    Menu7_6=new Array("Feed and Supplies","feed_supplies.php","",0,20,148);
    Menu7_7=new Array("Fencing","fencing.php","",0,20,148);
    Menu7_8=new Array("Publications","publications.php","",0,20,148);
    Menu7_9=new Array("Rescue and Protection","rescue.php","",0,20,148);
    Menu7_10=new Array("Stud and Reproduction Services","stud_reproduction.php","",0,40,148);
    Menu7_11=new Array("Tack and Supplies","tack_supplies.php","",0,20,148);
    Menu7_12=new Array("Trailer Sales","trailer_sales.php","",0,20,148);
    Menu7_13=new Array("Trainers","trainers.php","",0,20,148);
    Menu7_14=new Array("Transports","transport.php","",0,20,148);
    Menu7_15=new Array("Veterinarians","veterinarians.php","",0,20,148);

    Menu8=new Array("Calendar of Events","events.php","",0,23,148);

    Menu9=new Array("Classifieds","javascriptpen.location.href='phpclassifieds/index.php' ","",0,23,148);

    Menu10=new Array("Glossary","glossary.php","",0,23,148);

    Menu11=new Array("Links","links.php","",0,23,148);

    Menu12=new Array("News","news.php","",0,23,148);

    Menu13=new Array("Advertise","signup.php","",0,23,148);

    Menu14=new Array("Comments","email.php","",0,23,148);


  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <script type="text/javascript">
    
    var putItThere = null; 
    var chasm = screen.availWidth;
    var mount = screen.availHeight;
    var wd = chasm * .9;     // percentage of screen width occupied by pop-up (could also be a constant)
    var ht = mount * .8;      // percentage of screen height occupied by pop-up
    
    function deadCenter(url) {
         putItThere = window.open(url,'putItThere','width='+wd+',height='+ht+',left='+((chasm-wd-10)*.5)+',top='+((mount-ht-25)*.5)+',scrollbars,status,titlebar');
         if (putItThere & !putItThere.closed)     
             putItThere.focus();
    }
    
    </script>
    ..................................................................
    <script type="text/javascript">
    ............
    ............
    Menu9=new Array("Classifieds","javascri&#112;&#116;&#58;void deadCenter('phpclassifieds/index.php')","",0,23,148);
    (window opener courtesy of builder.com)

    Adjusting window parameters: http://www.webreference.com/js/tutorial1/features.html
    Last edited by adios; Jan 25, 2004 at 18:05.
    ::: certified wild guess :::


Bookmarks

Posting Permissions

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