PDA

View Full Version : Navigation Problems, Change Navigation from "javascript:showpage" to HTML,


jasonflo
01-21-2009, 04:03 PM
<a href="java script:showPage('_home.htm');" class="right">Home</a>
<a href="java script:showPage('_about.htm');" class="right">About</a>
<a href="java script:showPage('_portfolio.htm');" class="right">Portfolio</a>
<a href="java script:showPage('_contact.htm');" class="right">Contact</a>

This is the current code for some buttons on my site, I am improving the SEO so i wish to create a non javascript navigation option along the bottom of the site. i also want to create a site map. I have a main index page with a specific area where the content from other html documents are displayed. I am unsure how to link my index page with the other content in other html documents without using the java script:showpage code.

Thanks jason

abduraooft
01-21-2009, 04:12 PM
Could you post a link to your page so that we can see how's your current setup.

jasonflo
01-21-2009, 04:20 PM
yeh sure its

http://www.jasonflower.com/


thanks

Jason

abduraooft
01-21-2009, 05:07 PM
Try
<a href="_home.htm" class="right" onclick="showPage(this.href);return false;">Home</a>
PS: bumping is against posting guidelines (http://www.codingforums.com/postguide.htm)

jasonflo
01-21-2009, 05:19 PM
Legend, that seems to have done it. It’s recognised as having five pages now rather than just the one index.

Thanks again

P.S Sorry, I wasn’t aware that I was bumping, was that because I have been refreshing the page so often?

jasonflo
01-21-2009, 06:59 PM
That solved the link problem however i have just checked and the search spiders cannot see the home, about, porfolio or contact page. They are only reading the text from the idex page. Any idea how to solve this?. is it because they stop crawling as soon as they come across the javascript?.

thanks

Jason

abduraooft
01-22-2009, 07:51 AM
You need to provide the links to the other pages as the alternate content of your flash menu.
I'd recommend the swf-object method (http://code.google.com/p/swfobject/).