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?-
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8">
- <title>MyPlay</title>
- <link href="Includes/MYcss.css" rel="stylesheet" type="text/css">
- <link rel="stylesheet" href="includes/jquery-mobile/jquery.mobile-1.0.min.css" />
- <script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>
- <style type="text/css">
- </style>
- <script type="text/javascript">
- $(document).ready(function() {
- $('#sizzle').load('/includes/earphones.html');
- });
- </script>
- </head>
- <body>
- <div class="container">
- <!--start of header-->
- <div class="header">
- </div>
- <!-- end .header -->
- <!-- START OF CONTENT -->
- <div id="sizzle" class ="content">
- </div><!-- /content -->
-
- <!-- END OF CONTENT -->
-
- <!--start of player-->
- <div class="player">
- <P>AREA FOR PLAYER</P>
- </div>
- <div class="footer">
- <img src="Includes/Images/Mylogo.PNG" width="113" height="28" alt="Myfooter">
- <p>AREA FOR FOOTER</p>
- </div>
- <!-- end .footer -->
- </div>
- <!-- end .container --
- </body>
thanks,
a very frustrated Nigel :)