<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>TheWebsite</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
#body{ background-image:URL(kerry.jpg); background-repeat: no-repeat; background-position: center; background-color:#777; font-family: verdana, arial, helvetica, sans-serif;}
H1{ margin: 0px; font-size: 50pt; font-weight: bold; bottom: 0; right: 0; position: absolute;}
#body2{ background-image:URL(marshmallowman.jpg); background-repeat: no-repeat; background-position: center; background-color:#777; font-family: verdana, arial, helvetica, sans-serif;}
</style>
</head>
<body id="body">
<h1 onmouseover="body.id='body2'" onmouseout="body.id='body'">TheWebsite</h1>
</body>
</html>Şeklinde Css ile Background Resmi değiştirme Kodu var elimde. Fakat onmouseover="body.id='body2'" Şeklinde olan javascript kodunu flash yada swishmax da çalıştıramıyorum. Bu kodu nasıl çalıştırabilirim yardımcı olabilirmisiniz?
Yardım:Flash Yada Swish JavaScript Kullanımı
1
●511
- 20-03-2009, 12:48:17
- 20-03-2009, 13:10:13Çözümünü Buldum Sorduğum soruyu kendim cevaplayayım
<head><style type="text/css">
#style1 {background-color:yellow}
#style2 {background-color
ink}
</style>
<script>
<!--
function newid(){
document.getElementsByTagName('body')[0].id="style2"}
// -->
</script></head><body.id="style1">
<a href="javascript:newid()">how</a>
</body>
Flash yada Swishmax da şu şekilde arkplan renini değiştirmeyi başardım.
getURL("javascript:newid()", "");
ink}