Kesey Posted April 29, 2007 Share Posted April 29, 2007 I have a banner on my site which is a flash movie, so when links are clicked to visit the various pages of my site, I don't want the whole page (the flash header) to reload and start from the beginning. I have tried the following code, but still, the whole index page reloads every time a link is clicked. Any suggestions? Thanks! Main Page Code: <div id= "maincol"> <?php if ($title == null) { echo('<h3 class="grey">Show this text if null</h3>'); } if ($title == Home) { echo('<h3 class="grey">Show this text if Home</h3>'); } if ($title == About) { echo('<h3 class="grey">Show this text if About</h3>'); } ?> Links Code: <a href="index.php?name=home" class="active" id="home" title="home"> <a href="index.php?name=about" class="active" id="about" title="about"> Link to comment https://forums.phpfreaks.com/topic/49181-showing-different-info-in-a-without-refreshing-the-page/ Share on other sites More sharing options...
xenophobia Posted April 29, 2007 Share Posted April 29, 2007 You need some sort of javascript to do that. Or maybe AJAX. Link to comment https://forums.phpfreaks.com/topic/49181-showing-different-info-in-a-without-refreshing-the-page/#findComment-240994 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.