Jump to content

jdreed520

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jdreed520's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Ok let me try again.......I have this working PHP page and it creates the tabs like i want but on each tab it should show a page and i am having some issues with where to put the tag for the XXXXXX,php page that i want associated with that tab.......Look through the code i sent it has the tab headers and where it says Page 2 that word shows up where the page should display.
  2. ok here is the rest of the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Main-page</title> <h1 align="center"><a href="http://www.reedsnet.net">www.reedsnet.net</a></h1> <p align="center"> <marquee>Welcome to reedsnet my little spot on the web!!!!!</marquee> </p> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta name="description" content="" /> <meta name="keywords" content="" /> <link rel="stylesheet" type="text/css" href="tab-view.css" /> </head> <body> <p align="center"> <?php $id = isset($_GET['id']) ? $_GET['id'] : 1; ?> <div class="TabView" id="TabView"> <!-- ***** Tabs ************************************************************ --> <div class="Tabs" style="width: 1100px;"> <a <?=($id == 1) ? 'class="Current"' : 'href="sample.php?id=1"';?>Reedsnet Home</a> <a <?=($id == 2) ? 'class="Current"' : 'href="sample.php?id=2"';?>Jaylenes Page</a> <a <?=($id == 3) ? 'class="Current"' : 'href="sample.php?id=3"';?>Jims Page</a> <a <?=($id == 4) ? 'class="Current"' : 'href="sample.php?id=4"';?>Reeds Pictures</a> <a <?=($id == 5) ? 'class="Current"' : 'href="sample.php?id=5"';?>JCJAYS Main Page</a> <a <?=($id == 6) ? 'class="Current"' : 'href="sample.php?id=6"';?>JCJAYS Pictures</a> </div> <!-- ***** Pages *********************************************************** --> <div class="Pages" style="width: 1100px; height: 900px;"> <div class="Page" style="display: <?=($id == 1) ? 'block' : 'none';?>"><div class="Pad"><a href = homepage.php /a></div></div> <div class="Page" style="display: <?=($id == 2) ? 'block' : 'none';?>"><div class="Pad">Page 2</div></div> <div class="Page" style="display: <?=($id == 3) ? 'block' : 'none';?>"><div class="Pad">Page 3</div></div> <div class="Page" style="display: <?=($id == 4) ? 'block' : 'none';?>"><div class="Pad">Page 4</div></div> <div class="Page" style="display: <?=($id == 5) ? 'block' : 'none';?>"><div class="Pad">Page 5</div></div> <div class="Page" style="display: <?=($id == 6) ? 'block' : 'none';?>"><div class="Pad">Page 6</div></div> </div> </div> <script type="text/javascript" src="tab-view.js"></script> <script type="text/javascript"> tabview_initialize('TabView'); </script> </p> </body> </html>
  3. I got some code that makes tabs and everything is working except I cant get figure out where to put the web address. Below is the code where the web page address should go i just dont know how to format it. <div class="Page" style="display: <?=($id == 2) ? 'block' : 'none';?>"><div class="Pad">Page 2</div></div>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.