2014-02-12 23:43
浏览 23


I wanted to make my site use more PHP in order to save space on HTML code and I wanted to try using this code to make a menu that would launch different divs containing different pages or information per se, I was wondering if search bots would have difficulty navigating such a maze because of php or Javascript or both?

Here's the code,


 function fun1()
   //creates a div with a link to google
    echo'<a href = ""><div style = "height:100px; width:20px; top:100px; left:100px; background-color: black;"></div></a>';   
 function fun2()
 //creates a div with a link to yahoo
   echo'<a href = ""><div style = "height:200px; width:40px; top:200px; left:200px; background-color: red;"></div></a>';

<!DOCTYPE html>
<html lang="en">
    <button id="btnfun1" name="btnfun1" onClick='location.href="?button1=1"'>Update to 1</button>
    <button id="btnfun2" name="btnfun2" onClick='location.href="?button2=1"'>Update to 2</button>
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题