#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Posts
    5
    Rep Power
    0

    Unhappy CSS won't load unless rfreshed


    I have added CSS using the CoffeeCup application & believe I have succeeded....with one exception.

    1 - If one goes to www.TuscanHills.co.uk/css, the CSSs load..... excellent!
    2 - If one follows a link, the new CSSs don't appear on the new page.
    3 - If one then does a PAGE REFRESH, the CSSs appear.

    .........tell me I've been stupid
    .........tell me I've made the same error every beginner does
    .........anything!

    Just help!
  2. #2
  3. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2004
    Location
    0ffice[c0mput3r] || (Uni())
    Posts
    543
    Rep Power
    11
    How are you using CSS? Do you have them in a separate file?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Posts
    5
    Rep Power
    0
    No, it's in the <head>


    I have put in the </head><Body> tags

    DJE
  6. #4
  7. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2004
    Location
    0ffice[c0mput3r] || (Uni())
    Posts
    543
    Rep Power
    11
    Can you post a bit of the code?
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2004
    Posts
    5
    Rep Power
    0
    <script type='text/javascript'>

    function Go(){return}

    /***********************************************************************
    YOU CAN MANUALLY CHANGE THE MENU HERE, BUT BE VERY CAREFUL !
    ***********************************************************************/

    Menu1=new Array("Rentals","","",5,25,150);
    Menu1_1=new Array("...by price","","",3,25,150);
    Menu1_1_1=new Array("Upto 600/wk","Properties_to600.html","",0,25,150);
    Menu1_1_2=new Array("600 to 1000/wk","Properties_to1000.html","",0,25,150);
    Menu1_1_3=new Array("Over 1000/wk","Properties_over1000.html","",0,25,150);
    Menu1_2=new Array("...by type","","",3,25,150);
    Menu1_2_1=new Array("Apartments","Properties_apartments.html","",0,25,150);
    Menu1_2_2=new Array("Houses","Properties_houses.html","",0,25,150);
    Menu1_2_3=new Array("Agrotourismo","Properties_AgroT.html","",0,25,150);
    Menu1_3=new Array("...by location","Properties_location.html","",0,25,150);
    Menu1_4=new Array("...by size","","",3,25,150);
    Menu1_4_1=new Array("Sleeps to 4","Properties_small.html","",0,25,150);
    Menu1_4_2=new Array("Sleeps upto 8","Properties_large.html","",0,25,150);
    Menu1_4_3=new Array("Sleeps 8+","Properties_VLarge.html","",0,25,150);
    Menu1_5=new Array("...properties with pools","properties_pools.html","",0,25,150);

    Menu2=new Array("Sales","sales_summary.html","",0,25,150);

    Menu3=new Array("About the region","","",2,25,150);
    Menu3_1=new Array("Lunigiana, Tuscany","infopage_MS.html","",0,25,150);
    Menu3_2=new Array("Florence, Tuscany","Infopage_FI.html","",0,25,150);

    Menu4=new Array("Contact us","","",2,25,150);
    Menu4_1=new Array("About Tuscan Hills Ltd","contactus.html","",0,25,150);
    Menu4_2=new Array("Make a booking","booking.html","",0,25,150);


    var NoOffFirstLineMenus=4; // Number of first level items
    var LowBgColor='917E35'; // Background color when mouse is not over
    var LowSubBgColor='917E35'; // Background color when mouse is not over on subs
    var HighBgColor='#DDDAB7'; // Background color when mouse is over
    var HighSubBgColor='#DDDAB7'; // 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='000000'; // Border color
    var BorderSubColor='000000'; // Border color for subs
    var BorderWidth=1; // Border width
    var BorderBtwnElmnts=1; // Border between elements 1 or 0
    var FontFamily="Arial" // Font family menu items
    var FontSize=10; // Font size menu items
    var FontBold=0; // 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='center'; // Menu horizontal position 'left', 'center' or 'right'
    var MenuVerticalCentered='top'; // Menu vertical position 'top', 'middle','bottom' or static
    var ChildOverlap=.2; // horizontal overlap child/ parent
    var ChildVerticalOverlap=.2; // vertical overlap child/ parent
    var StartTop=1; // Menu offset x coordinate
    var StartLeft=1; // Menu offset y coordinate
    var VerCorrect=0; // Multiple frames y correction
    var HorCorrect=0; // Multiple frames x correction
    var LeftPaddng=3; // Left padding
    var TopPaddng=2; // Top padding
    var FirstLineHorizontal=1; // SET TO 1 FOR HORIZONTAL MENU, 0 FOR VERTICAL
    var MenuFramesVertical=1; // 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=''; // span id for relative positioning
    var HideTop=1; // 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=1; // Uses arrow gifs when 1
    var KeepHilite=1; // Keep selected path highligthed
    var Arrws=['tridark.gif',5,10,'tridarkdown.gif',10,5,'tridarkleft.gif',5,10]; // Arrow source, width and height


    /***********************************************************************
    DO NOT EDIT ANYTHING BELOW THIS LINE - IT WILL BREAK THE SCRIPT !
    ***********************************************************************/

    var AgntUsr=navigator.userAgent.toLowerCase();
    var DomYes=document.getElementById?1:0;
    var NavYes=AgntUsr.indexOf('mozilla')!=-1&&AgntUsr.indexOf('compatible')==-1?1:0;
    var ExpYes=AgntUsr.indexOf('msie')!=-1?1:0;
    var Opr=AgntUsr.indexOf('opera')!=-1?1:0;
    var Opr6orless=window.opera && navigator.userAgent.search(/opera.[1-6]/i)!=-1 //DynamicDrive.com added code
    var DomNav=DomYes&&NavYes?1:0;
    var DomExp=DomYes&&ExpYes?1:0;
    var Nav4=NavYes&&!DomYes&&document.layers?1:0;
    var Exp4=ExpYes&&!DomYes&&document.all?1:0;
    var PosStrt=(NavYes||ExpYes)&&!Opr6orless?1:0;
    var FrstLoc,ScLoc,DcLoc;
    var ScWinWdth,ScWinHght,FrstWinWdth,FrstWinHght;
    var ScLdAgainWin;
    var FirstColPos,SecColPos,DocColPos;
    var RcrsLvl=0;
    var FrstCreat=1,Loadd=0,Creatd=0,IniFlg,AcrssFrms=1;
    var FrstCntnr=null,CurrntOvr=null,CloseTmr=null;
    var CntrTxt,TxtClose,ImgStr;
    var Ztop=100;
    var ShwFlg=0;
    var M_StrtTp=StartTop,M_StrtLft=StartLeft;
    var StaticPos=0;
    var LftXtra=DomNav&&!Opr?LeftPaddng:0; //Changed for Opera
    var TpXtra=DomNav?TopPaddng:0;
    var M_Hide=Nav4?'hide':'hidden';
    var M_Show=Nav4?'show':'visible';
    var Par=parent.frames[0]&&FirstLineFrame!=SecLineFrame?parent:window;
    var Doc=Par.document;
    var Bod=Doc.body;
    var Trigger=NavYes&&!Opr?Par:Bod; //Changed for Opera

    MenuTextCentered=MenuTextCentered==1||MenuTextCentered=='center'?'center':MenuTextCentered==0||MenuT extCentered!='right'?'left':'right';
    WbMstrAlrts=["Item not defined: ","Item needs height: ","Item needs width: "];

    if(Trigger.onload)Dummy=Trigger.onload;
    if(DomNav||Opr)Trigger.addEventListener('load',Go,false); //Changed for Opera
    else Trigger.onload=Go;

    function Dummy(){return}

    function CnclSlct(){return false}

    function RePos(){
    FrstWinWdth=ExpYes?FrstLoc.document.body.clientWidth:FrstLoc.innerWidth;
    FrstWinHght=ExpYes?FrstLoc.document.body.clientHeight:FrstLoc.innerHeight;
    ScWinWdth=ExpYes?ScLoc.document.body.clientWidth:ScLoc.innerWidth;
    ScWinHght=ExpYes?ScLoc.document.body.clientHeight:ScLoc.innerHeight;
    if(MenuCentered=='justify'&&FirstLineHorizontal){
    FrstCntnr.style.width=FrstWinWdth;
    ClcJus();
    var P=FrstCntnr.FrstMbr,W=Menu1[5],i;
    for(i=0;i<NoOffFirstLineMenus;i++){P.style.width=W;P=P.PrvMbr}}
    StaticPos=-1;
    if(TargetLoc)ClcTrgt();
    if(MenuCentered)ClcLft();
    if(MenuVerticalCentered)ClcTp();
    PosMenu(FrstCntnr,StartTop,StartLeft)}


    ..........will that do?!?

    Cheers, this is now REALLY bugging me!

    DJE

IMN logo majestic logo threadwatch logo seochat tools logo