Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Senior Member Karloff's Avatar
    Join Date
    Oct 2005
    Posts
    744
    Member #
    11702
    designed this site and i used a slide show in the home page but not sur where to put the 'script' tags cause if i put them in the head section it doesn't seem to work??

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>Achnabobane Bed and Breakfast - Enquiries</title>
    
    <link rel="stylesheet" type="text/css" href="achnabobane.css">
    
    <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
    <meta name="keywords" content="Achnabobane, Bed and Breakfast, Fort William, Guest House, Spean Bridge">
    <meta name="description" content="">
    
    <script type="text/javascript" src="domnews.js"></script>
    <body>
    <!--Start of container-->
    <div class="container"> 
    <!--Header begins-->
      <div class="header">
        <h1>Achnabobane Farmhouse</h1>
        <h2>Spean Bridge - Gateway to the Great Glen of the 
        Scottish highlands, a relaxing and truly scottish 
        holiday destination</h2>
      </div>
    <!--Header ends-->
    
    <!--Navigation tab-->
      <div id="navcontainer"> 
        <ul id="navlist">
          <li id="home"><a href="home.htm">Home</a></li>
          <li id="enquiries"><a href="Enquiries.php">Enquiries</a></li>
          <li id="aboutus"><a href="About.htm">About us</a></li>
          <li id="findus"><a href="find.htm">Find Us</a></li>
          <li id="history"><a href="history.htm">History</a></li>
          <li id="thearea"><a href="area.htm">The Area</a></li>
          <li id="tarriff"><a href="tariff.htm">Tariff</a></li>
        </ul>
      </div>
    <!--Navigation ends-->
    <!-- Start of main content-->
      <div id="content"> 
          <IMG SRC="dining-room.jpg" class="imgright" alt=""> 
    
         <p>At Achnabobane Farmhouse, we strive to offer our Guests an excellent standard of accommodation and 
         customer comfort. Our Guest lounge is both spacious and convivial, with a wide range of books, games and 
         videos,T.V. complete with Sky Satelite channels too.</p>
         <p>Written Enquiries to:
         <ul>
            <li>Achnabobane Farmhouse</li>
            <li>Spean Bridge</li>
            <li>Highlands</li>
            <li>PH34 4EX</li>
        </ul>
        <p>Telephone: 01397 712 919</p>
    
        <p>E-mail: <a href="mailto:achnabobane@dsl.pipex.com?subject=Enquiries">achnabobane@dsl.pipex.com</a> </p>
    <!-- Start of php e-mail form code, do not alter php code -->
        <?
    
    
    if (isset($_POST['from']))
    {
        $ip = $_SERVER['REMOTE_ADDR'];
        $resolved = gethostbyaddr($ip);
        if ($resolved != $ip)
        {
            $footer = "This e-mail was sent by a user with the IP address $ip, which resolved to '$resolved'.";
        }
        else
        {
            $footer = "This e-mail was sent by a user with the IP address $ip, which could not be resolved to a hostname.";
        }
        $message = $_POST['message'];
        $message = "$message\n\n------------\n$footer";
        
        if (mail('                  ', $subject, $message, "From: $from\r\nReply-To: $from\r\n")) 
        {
            echo 'Your mail was successfully sent.';
        }
        else
        {
            echo 'There was an error while sending the mail.';
        }
    }
    else
    {
    ?><form method="post" action="<? echo $_SERVER['PHP_SELF']; ?>">
      <p>Please be aware that your IP address (<? echo $_SERVER['REMOTE_ADDR'] ?>) will be sent along with the message
        to prevent against abuse of this mail form.</p>
      <table border="0" cellspacing="0" cellpadding="3">
        <tr>
          <td>Your e-mail address:<br>
            <input type="text" name="from" size="60">
            </td>
        </tr>
        <tr>
          <td>Subject:
          <br>
            <input type="text" name="subject" size="60">
            </td>
        </tr>
        <tr>
          <td>Message:<br>
            <textarea name="message" rows="10" cols="60"></textarea>
            </td>
        </tr>
        <tr>
          <td align="right"> Click
            &quot;Send&quot; only once.<br>
            <input type="submit" value="Send">
          </td>
        </tr>
      </table>
    </form>
    <?
    }
    
    ?> 
    
    <!-- End of E-mail Form-->
    
        <p>Mountain Bikers, Walkers, Hikers, Skiers, Bird Watchers, Golfers, Climbers, Fisherman and all, are most welcome. 
        We have drying facilities for outdoor clothing.</p>
    
         <p>As we already have three cats and a Cavalier King Charles Spaniel, (Morse), and this is Morse's home, so visiting owners, please:
         <ul>
            <li><img src="pets_welcome_phone.gif" alt="">Pets by prior arrangement</li>
            <li><img src="park.gif" alt="">Private car park facilities</li>
            <li><img src="evening_meal.gif" alt="">Dinner, from a set menu is available on request.</li>
            <li><img src="phone2.gif" alt="">Payphone</li>
            <li><img src="TV.gif" alt="">TV in every room</li>
            <li><img src="tv_lounge.gif" alt="">Guest Lounge with TV & Sky Satellite</li>
            <li><img src="children.gif" alt="">Well Behaved Children are welcome</li>
            <li><img src="tea.gif" alt="">Tea & Coffee facilities in every room</li>
            <li>Special dietary requests by prior arrangement </li>
        </ul>
        <p>You can settle your account with any of the following: Cash; Personal Cheque supported by a valid and 
        current Bankers Guarantee Card or Credit/Switch Cards. We do advise that if using a Credit Card, there is 
        a 3.5% service charge</p>
        
        <img src="Cards.gif" alt="">
    
      </div>
    <!-- End of main content-->
    <!--Start of footer-->
      <div class="footer"> 
         <div class="smokefooter">
            <img class="float" src="nosmoking.gif" alt="">
            <p>Please note that Achnabobane Farmhouse is an entirely no smoking Guest House.</p>
            <p>Scottish Law - 26th March 2006. No Smoking in all Public Places</p>
         </div>
         <div class="addressfooter">
            <p>Spean Bridge, Inverness-shire. PH34 4EX<br>
            Tel: 01397 712 919<br>
            email: <a href="mailto:someone@$nailmail.com?subject=Enquiries">achnabobane@dsl.pipex.com</a> 
          </div>
           <div class="designfooter">
              <p>Web design - <a href="http://www.paulcurley.com">Paul Curley</a></p>
              <p>&copy and maintenaince - Neil & Elizabeth Ockenden.</p>
           </div>
      </div>
    <!--Start of footer-->
    </div>
    <!--End of container-->
    </body>
    </html>
    another question is about the validation of my css.




    if you check this link you'll find a link where you can see the css. there seems to be thousands of warnings? most of them seemed to be weird (not very descriptive, sorry). lots of warnings about not declaring a background color but i have... etc.

    if you could help me out on any of these prob i would really appriciate it
    Last edited by Karloff; Sep 12th, 2013 at 12:23 PM.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,723
    Member #
    5580
    Liked
    718 times
    First of all, you currently have this at the top:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>


    Is this what you really wanted to have?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>


    =======================================
    Things that will help validation:

    Meta tags end with />

    breaks <br> should be <br />

    img src end with alt="" /> (they must have an alt tag even if it's null)

    all tags small letters only (not IMG TAG)

    all ampersands are &amp; not &

    ========================================

    The Slideshow .... I don't see where it's triggered ... maybe you took
    the onload() out of the body tag?


  4. #3
    Senior Member Karloff's Avatar
    Join Date
    Oct 2005
    Posts
    744
    Member #
    11702
    sorry, just realised that i posted wrong page..... doh!!!!
    here is the correct page

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
    <head>
    <title>Achnabobane Bed and Breakfast - Home</title>
    
    <link rel="stylesheet" type="text/css" href="achnabobane.css">
    
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" >
    <meta name="keywords" content="Achnabobane, Bed and Breakfast, Fort William, Guest House, Spean Bridge">
    <meta name="description" content="">
    
    <script type="text/javascript" src="domnews.js"></script>
    
    <script type="text/javascript">
    <!--
    var image1=new Image()
    image1.src="union.gif"
    var image2=new Image()
    image2.src="dining-room.jpg"
    var image3=new Image()
    image3.src="bed1.gif"
    var image4=new Image()
    image4.src="bed2.gif"
    var image5=new Image()
    image5.src="bed3.gif"
    var image6=new Image()
    image6.src="bed4.gif"
    
    //-->
    </script>
    </head>
    <body>
    <!--Start of container-->
    <div class="container"> 
    <!--Header begins-->
      <div class="header">
        <h1>Achnabobane Farmhouse</h1>
        <h2>Spean Bridge - Gateway to the Great Glen of the 
    	Scottish highlands, a relaxing and truly scottish 
    	holiday destination</h2>
      </div>
    <!--Header ends-->
    
    <!--Navigation tab-->
      <div id="navcontainer"> 
        <ul id="navlist">
          <li id="home"><a href="home.htm">Home</a></li>
          <li id="enquiries"><a href="Enquiries.php">Enquiries</a></li>
          <li id="aboutus"><a href="About.htm">About us</a></li>
          <li id="findus"><a href="find.htm">Find Us</a></li>
          <li id="history"><a href="history.htm">History</a></li>
          <li id="thearea"><a href="area.htm">The Area</a></li>
          <li id="tariff"><a href="tariff.htm">Tariff</a></li>
        </ul>
      </div>
    <!--Navigation ends-->
    <!-- Start of main content-->
      <div id="content"> 
    <!-- Guest comments start-->
        <div class="roundcont"> 
            <div class="roundtop">
               <img src="tlg2.gif" alt="" class="corner" style="display: none" />
            </div>
          <h2>Guest Comments</h2>
    	  <div id="news">
    	<ul>
    		<li>Paul Curley</li>
    		<li>You can put in any scrolling comments here!!!</li>
    		<li>Fantastic B and B in a great part of lovely Scotland</li>
    		<li>You can also stop the scrolling by pressing the 'stop scrolling' button</li>
    	</ul>
    	  </div>
    	  <div class="roundbottom">
             <img src="blg.gif" alt="" class="corner" style="display: none" /> 
          </div>
        </div>
    <!-- Guest comments ends-->
        <p>Hello, we are <b>Neil &amp; Elizabeth Ockenden</b>, of <b><i>Achnabobane</i></b> 
          <b><i>Farmhouse</i></b>.</p>
    
        <p>We recently moved to the Western Highlands of Scotland, for a complete 
          change of scenery. And that, we can assure you, is spectacular, to say the 
          least.</p>
    <!--Slide show box-->
    	  <div id="sidebar"> 
           <img src="union.gif" name="slide" width="234" height="176" alt=""/>
    <script>
    <!--
    //variable that will increment through the images
    var step=1
    function slideit(){
    //if browser does not support the image object, exit.
    if (!document.images)
    return
    document.images.slide.src=eval("image"+step+".src")
    if (step<6)
    step++
    else
    step=1
    //call function "slideit()" every 2.5 seconds
    setTimeout("slideit()",2500)
    }
    slideit()
    //-->
    </script>
          </div>
    <!--Slide show box ends-->
        <p>From our vantage point, we look right out onto <i>Ben Nevis, Aonach Mhor 
          and the Gray Corries. </i> That is the background picture you can see here 
          and on all pages.</p>
        
        <p>The location of Achnabobane Farmhouse provides an ideal central base for exploring The Highlandsto best 
    	advantage. Round journeys to all the destinations shown- with plenty of time to spend when you get there - 
    	are easily achievable in a day. Alternatively, you can simply chill out and enjoy the local area, 
    	famed for its wide variety of outdoor pursuits, wildlife and numerous attractions and places of interest to see.</p>
      </div>
    <!-- End of main content-->
    <!--Start of footer-->
    
      <div class="footer"> 
         <div class="smokefooter">
            <img class="float" src="nosmoking.gif" alt="">
    		<p>Please note that Achnabobane Farmhouse is an entirely no smoking Guest House.</p>
    		<p>Scottish Law - 26th March 2006. No Smoking in all Public Places</p>
    	 </div>
    	 <div class="addressfooter">
        	<p>Spean Bridge, Inverness-shire. PH34 4EX<br>
    	    Tel: 01397 712 919<br>
    	    email: <a href="mailto:someone@$nailmail.com?subject=Enquiries">achnabobane@dsl.pipex.com</a> 
    	 </div>
    	   <div class="designfooter">
              <p>Web design - <a href="http://www.paulcurley.com">Paul Curley</a></p>
    		  <p>&copy and maintenaince - Neil & Elizabeth Ockenden.</p>
    	   </div>
      </div>
    <!--Start of footer-->
    </div>
    <!--End of container-->
    </body>
    </html>
    i'll be honest, not sure if i should be validating with xhtml or html. i'll try validate it with what your saying, still a bit of a novice so i'll see how it goes.

    cheers man

  5. #4
    Senior Member Shani's Avatar
    Join Date
    Nov 2004
    Posts
    1,140
    Member #
    8171
    Hi Curley,

    First off, as a courtesy to any one who may want to look at this stuff... edit your first post and remove the code, it's a lot of scrolling for nothing. Next, edit your second post and instead of[code] put [html].

    Now to address your concerns...

    The most glaring thing to me is that the second post does not actually have an active script because it is removed via html comments [minicode] <!-- script stuff --> [/minicode].

    Next, this site is not done in XHTML. Look at w3 for how to convert HTML into XHTML because it is not that complicated.
    Shani

    I have an eye for detail like you'd never believe.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:48 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com