Results 1 to 5 of 5

Thread: HTML/CSS question

  1. #1

    Thread Starter
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616

    HTML/CSS question

    Is there any way of making an existing HTML file load itself up in a given frameset if it is navigated to directly.

    For example I would like the Example here to load up using this frameset
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Yeah I do this on my site.
    We give out this link to people :

    http://www.everymanonline.com/softwa...yagot/features

    And index loads it up into the frameset.
    You can put into the features page then that if the top location = the current page's location then to reload the current page inside that frameset.
    Anyway, this is our index.htm :

    Code:
    <HTML>
    <head>
    <title>Everyman Technologies</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    
    <script language="JavaScript"><!--
    
    document.write('<frameset cols="80,*" frameborder="0" border="0" framespacing="0">'     );
    document.write('  <frame name="leftFrame" scrolling="NO" noresize src="indexLeft.htm">' );
    document.write('  <frameset rows="110,*" frameborder="NO" border="0" framespacing="0">' );
    document.write('    <frame name="top" scrolling="NO" noresize src="indexTop.htm" >'     );
    document.write('    <frame name="main" src="' + (location.search ? location.search.substring(1):"indexBottom") + '.htm">'                          );
    document.write('  </frameset>'                                                          );
    document.write('<\/frameset>'                                                           );
    
    //--></script>
    </html>
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Frenzied Member MerrionComputin's Avatar
    Join Date
    Apr 2001
    Location
    Dublin, Ireland
    Posts
    1,616
    Hmm - I'd rather not edit the 400 or so files...is it possible to do this with something in the stylesheet.css?

    Also - what do you think of the frame version?
    ----8<---------------------------------------
    NEW - The .NET printer queue monitor component
    ----8<---------------------------------------
    Now with Examples of use

  4. #4
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    You can't do that sort of thing with CSS, just put all that lot (minus the script tags) in a file named "check.js" or something, then in the <head> put <script type="text/javascript" src="check.js"></script> I'm sure you can use search/replace to do it easily?

  5. #5
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Originally posted by MerrionComputin
    Hmm - I'd rather not edit the 400 or so files
    Write an application to edit the files for you.
    I always write applications to do anything tedious
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

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



Click Here to Expand Forum to Full Width