ifames alternative

ifames alternative

Hi,

so i need to replace iframes for jQuery DIVS. Reading in the internet, its really simple. In proactice, it seems much harder.

Notes:
all external pages are within the folder structure to the index.html that is looking at them
all images are in a folder called images

Scenario:
Index has a DIV called 'Sizzle'. in this div, i want to change the content to 3 possible pages (pg1, pg2, pg3)
any one of these pages need to be displayed in the div. all pages have images on them.

Questions:
can images be shown in the divs as they can in iframes?
why doesnt this code work?-
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <title>MyPlay</title>
  6.   <link href="Includes/MYcss.css" rel="stylesheet" type="text/css">
  7.   <link rel="stylesheet" href="includes/jquery-mobile/jquery.mobile-1.0.min.css" />
  8.   <script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>

  9. <style type="text/css">
  10. </style>
  11. <script type="text/javascript">
  12.         $(document).ready(function() {
  13.         $('#sizzle').load('/includes/earphones.html');
  14.         });    
  15.     </script>

  16. </head>
  17. <body>
  18. <div class="container">
  19.     <!--start of header-->
  20.     <div class="header">
  21.     </div>
  22.     <!-- end .header -->
  23.       <!-- START OF CONTENT -->
  24.       <div id="sizzle" class ="content">   
  25.       </div><!-- /content -->  
  26.        
  27.       <!-- END OF CONTENT -->
  28.     
  29.     <!--start of player-->
  30.     <div class="player">
  31.     <P>AREA FOR PLAYER</P>
  32.     </div>
  33.     <div class="footer">
  34.     <img src="Includes/Images/Mylogo.PNG" width="113" height="28" alt="Myfooter">
  35.     <p>AREA FOR FOOTER</p>
  36.     </div>
  37.     <!-- end .footer -->
  38. </div>
  39.   <!-- end .container --
  40. </body>
thanks,

a very frustrated Nigel :)