当前位置: 代码迷 >> HTML/CSS >> HTML初学者有关问题
  详细解决方案

HTML初学者有关问题

热度:58   发布时间:2012-05-13 16:39:43.0
HTML菜鸟问题,求助
如何把下面代码中的IP,改成自动的?直接根据实际访问的网页地址自动适应。
<div style="margin: 50px">
  <a title="rtsp://192.168.12.44:8554/test.264" href="#" onclick="doGo(this.title);return false;">test.264</a>
  <span style="margin: 20px;" />
  <a title="rtsp://192.168.12.44:8554/02.mp3" href="#" onclick="doGo(this.title);return false;">02.mp3</a>
  <span style="margin: 20px;" />
</div>

如何在网页刚进来的时候,马上执行do.Go(rtsp://192.168.12.44:8854/test.264);



------解决方案--------------------
var ip = 'rtsp://'+location.host+'/';
  相关解决方案