jdreed520 Posted October 15, 2009 Share Posted October 15, 2009 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> Quote Link to comment Share on other sites More sharing options...
trq Posted October 15, 2009 Share Posted October 15, 2009 Need allot more details than that I'm afraid. Quote Link to comment Share on other sites More sharing options...
jdreed520 Posted October 15, 2009 Author Share Posted October 15, 2009 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> Quote Link to comment Share on other sites More sharing options...
trq Posted October 15, 2009 Share Posted October 15, 2009 Its your question that doesn't make sense. I cant get figure out where to put the web address How should we know? Quote Link to comment Share on other sites More sharing options...
jdreed520 Posted October 15, 2009 Author Share Posted October 15, 2009 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. Quote Link to comment Share on other sites More sharing options...
GoneNowBye Posted October 15, 2009 Share Posted October 15, 2009 You put the adress in the href tag attribute normally, but that's HTML. erm... also in php if you want to put something out you need the function "echo" so something.....<?php echo('test'); ?>.....something becomes semething.....test....something Helped? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.