Merhaba arkadaşlar
iframe yerine
ajax içeren bir komut kullandım kodlarım aşağıdaki gibi...
sol taraf ve üst taraf sabit , sol tarafta menüm var menü
flash ve butonlara tıklandığında açılacak olan sayfanın
div tagında açılması lazım , fakat ben
flash butonuma nasıl link vereceğimi bilmiyorum yardımcı olun lütfeen ...
INDEX.HTML dökümanımdaki kodlar
<title>Axis</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=iso-8859-9">
<script type="text/JavaScript" src="ajax.js"></script>
<style>
#orta{
width:737px;
min-height: 500px;
margin-left: 0px;
padding: 0px;
padding-bottom: 0px;
}
* HTML #orta{ /*IE only style*/
height: 400px;
}
body {
background-color: #740000;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
</style>
</script>
<script src="Scripts/AC_RunActiveContent.js" type="text/JavaScript"></script>
<link href="CSS.CSS" rel="stylesheet" type="text/CSS">
</head>
ve
div tagında açılacak sağfamın kodları
<HTML>
<head>
<title>Wochenkarte</title>
<meta http-equiv="Content-Type" content="text/HTML; charset=iso-8859-9">
<script src="Scripts/AC_RunActiveContent.js" type="text/JavaScript"></script>
<style type="text/CSS">
<!--
body {
background-color: #740000;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="CSS.CSS" rel="stylesheet" type="text/CSS">
<style type="text/CSS">
<!--
.style1 { color: #FFCC66;
font-weight: bold;
}
.style3 {font-size: 10}
.style14 {color: #000066}
.style16 {color: #000099}
.style2 {color: #FFFF99; font-weight: bold; }
.style5 {color: #FFFF99}
.style9 {color: #000000; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; }
.style17 {color: #FFFFCC}
.style4 {color: #FFCC66; font-weight: bold; font-size: 12px; }
-->
</style>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new image; d.MM_p[j++].src=a[i];}}
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body onLoad="parent.document.all.soul.style.width=paren t.soul.document.body.scrollWidth; parent.document.all.soul.style.height=parent.soul. document.body.scrollHeight;">
<table width="737" height="500" bgcolor="#740000">
<tr>
<td valign="top" bgcolor="#740000"><table width="685" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="685" align="left" valign="top"><span class="BASLIK">SPEISEN & GETRÄNKE</span><br />
<table width="594" border="0" cellspacing="0" cellpadding="0">
<tr>
<th width="794" class="yazi" scope="col"><div align="center"><a href="suppen.htm">Suppen</a> | <a href="salate.htm">Salate</a> | <a href="grill.htm">Vom Grill</a> | <a href="nudel.htm">Nudelgerichte</a> | <a href="pizza.htm">Pizzen</a> | <a href="kartoffel.htm">Kartoffelgerichte</a><br />
<a href="hamburger.htm">Hamburger</a> | <a href="kinder.htm">Kinder Menü</a> | <a href="dessert.htm">Dessert</a> | <a href="getranke.htm">Getränkekarte</a></div></th>
</tr>
</table>
<br />
<span class="style1"><img src="images/sus.png" width="28" height="21" />WOCHENKARTE</span><br />
<br />
<blockquote class="BASLIK">
<table width="394" border="1" cellpadding="0" cellspacing="0" bordercolor="#E47C1B">
<tr>
<th scope="col"><a href="#"><img src="images/wochenkarte_2.JPG" width="500" height="266" border="0" onclick="MM_openBrWindow('woch.htm','','width=1000 ,height=533')" /></a></th>
</tr>
</table>
</blockquote></td>
</tr>
</table></td>
</tr>
</table>
</body>
</HTML>
JavaScript dökümanımdaki kodlarda şöyle ...
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
function ajaxpage(url, containerid){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
}
page_request.open('GET', url, true)
page_request.send(null)
}
function loadpage(page_request, containerid){
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
document.getElementById(containerid).innerHTML=pag e_request.responseText
}
}
function loadobjs(){
if (!document.getElementById)
return
for (i=0; i<arguments.length; i++){
var file=arguments[i]
var fileref=""
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
if (file.indexOf(".js")!=-1){ //If object is a js file
fileref=document.createElement('script')
fileref.setAttribute("type","text/JavaScript");
fileref.setAttribute("src", file);
}
else if (file.indexOf(".CSS")!=-1){ //If object is a CSS file
fileref=document.createElement("link")
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/CSS");
fileref.setAttribute("href", file);
}
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appe ndChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
}
}