2012-08-08 13 views
1

Heyo,刷卡在和iframe或類似的東西

希望這是一個簡單的回答一個簡單的問題...有沒有辦法來創建一個iframe或類似的東西一個HTML文檔,這將加載網頁,但允許你在頁面之間來回滑動?像

<html> 
<head> 
<meta charset="utf-8"/> 
<title>Blent</title> 
<link rel="stylesheet" href="jquery.mobile.pagination.css" /> 
<script src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script> 
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js">  </script> 
<script src="jquery.mobile.pagination.js"></script> 
<!-- Prevent scaling --> 
<meta name="viewport" content="user-scalable=no, width=device-width" /> 
<!-- Eliminate url and button bars if added to home screen --> 
<meta name="apple-mobile-web-app-capable" content="yes" /> 
</head> 
<body> 
<iframe id=」the-frame」 src=」http://google.com」></iframe> 
</body> 
</html> 

所以我必須與谷歌的iFrame在裏面,如果我刷卡,這將加載說Amazon.com,然後如果我刷回來,這將加載谷歌。任何這樣做?

回答

0

我猜你會冒犯同源政策。因此,你將無法在javascript內使用iframe(不管它是jquery,mootools,vanilla還是其他任何東西)做任何事情。

可能不過是一個機會,如果你創建了多個div多個iframe和刷卡後...

相關問題