2011-07-15 32 views
0

我開發一個簡單的HTML內容頁去cd。我有問題通過內容頁面上的鏈接導航到頁面。鉻導航罰款,但即8不會打開頁面。我的繼承人代碼即8和從本地機器運行的網頁

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<!-- saved from url=(0014)about:internet --> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
<head> 
    <title>Gunnerbury Park Mansion</title> 
    <!-- add meta tags --> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <meta name="description" content="Content page for LAM scan of Gunnersbury Mansion" /> 
    <meta name="keywords" content="Gunnersbury mansion, LAM, Laser Aided Modelling, scan" /> 
    <meta name="rating" content="Safe for Kids" /> 
    <meta name="author" content="Richard Banks" /> 
    <link rel="Stylesheet" type="text/css" href="reset.css" /> 
    <link rel="Stylesheet" type="text/css" href="vertical-centering-page-layout.css" /> 
    <link rel="Stylesheet" type="text/css" href="main.css" /> 
    <script type="text/javascript" src="js/jquery-1.5.min.js"></script> 
    <script type="text/javascript" src="js/jquery.ez-bg-resize.js"></script> 
    <script type="text/javascript" src="js/transify-min.js"></script> 
    <script type="text/javascript" src="js/main.js"></script> 
</head> 
<body> 
    <div id="Floater"></div> 
    <div id="MainWrapper"> 
     <div id="Content"> 
      <div id="Header">Gunnerbury Park Mansion</div> 
      <div id="ContentBody"> 
       <table id="Truviews"> 
        <thead></thead> 
        <tbody> 
         <tr><td><a href="">External View</a></td></tr> 
         <tr><td><a href="Basement/SiteMap.htm">Basement View</a></td></tr> 
         <tr><td><a href="">Ground Floor View</a></td></tr> 
         <tr><td><a href="">First Floor View</a></td></tr> 
         <tr><td><a href="">Second Floor View</a></td></tr> 
         <tr><td><a href="">Roof View</a></td></tr> 
         <tr><td></td></tr> 
         <tr><td><a href="Truview software/TruViewSetup_2_1_0_1.exe">Install Truview 2.1</a></td></tr> 
         <tr><td><a href="Truview software/TruViewSetup221.exe">Upgrade to Truview 2.2</a></td></tr> 
        </tbody> 
       </table> 
      </div> 
      <div id="Footer"> 
       <img src="EalingLogo.png" alt="Ealing Logo" alt="Ealing Logo" id="EalingLogo"/> 
       <img src="GiffordLogo.png" alt="Gifford Logo" alt="Gifford Logo" id="GiffordLogo"/> 
      </div> 
     </div> 
    </div> 
</body> 

沒有人有任何想法這是爲什麼。我讀了關於「網絡的標誌」,但添加減號似乎並沒有改變任何東西

回答

0

有一個稍微邪惡的方法,似乎在IE中工作。儘管如此,我不能讚揚這一點,這是互聯網的神。

<a href="C:\\Program Files\\Application\\Software.exe" onclick="return LaunchApp();">Launch the executable</a> 

<script> 
function LaunchApp() { 
    if (!document.all) { 
     // -- If we're not in IE, just go ahead with the normal loading routine. 
     return true; 
    } 

    // -- If we're in IE, use ActiveX instead! 
    var ws = new ActiveXObject("WScript.Shell"); 
    ws.Exec("C:\\Program Files\\Application\\Software.exe"); 
    return false; 
} 
</script> 
+0

我只想要exe文件作爲下載提供。我不想運行它們。此外,鏈接到Basement/SiteMap.htm不起作用。 –

相關問題