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. I did a little monkeying around with Scriptaculous, but that was cumbersome and I couldn't get what I really wanted to work. 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"> Quote Link to comment Share on other sites More sharing options...
fenway Posted April 30, 2007 Share Posted April 30, 2007 You either need frames or lots of JS. Quote Link to comment Share on other sites More sharing options...
Kesey Posted April 30, 2007 Author Share Posted April 30, 2007 Hmm, ok. Seems like it should be something common and simple. Does anyone actually use frames anymore? I think I'll try the javascript approach. If I choose to stick with the page refresh it kind of makes my PHP if statement useless. 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.