Undgå at side hopper ved sideskift?
Hejsa.Sidder og arbejder på denne side:
http://soederberg-indretning.dk/NytFirmaSite
Og nu er det begyndt at irritere mig, at siden hopper når man skifter side, og ikke bare blødt skifter.
Er det fordi jeg har 2 swf. objekter på siden, eller er det min kodning jeg kan optimere?
Følgende er koden for min index fil:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Boligstylist og multimediedesigner Lone Søderberg</title>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta name="description" content="Boligstylist Lone Søderberg, tilbyder indretning hos private i København" />
<meta name="keywords" content="mmd, multimediedesigner, boligstylist, Lone Søderberg, studerende" />
<meta name="author" content="Søderberg-indretning" />
<style type="text/css" media="all">
@import "css/indretning.css";
</style>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("forside3.swf", "alternativt", "995", "350", "9.0.0", "expressInstall.swf");
swfobject.embedSWF("menu2.swf", "menu2", "995", "40", "9.0.0", "expressInstall.swf");
</script>
<script src="AC_RunActiveContent.js" type="text/javascript"></script>
</head>
<body>
<div id="indhold">
<div id="banner"><img src="logo/4.png" alt="Søderberg-indretning, din multimediedesigner og boligstylist" />
</div>
<div id="menu3">
<div id="menu2">
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</div>
<div id="flash">
<div id="alternativt">
<h1></h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</div>
<center><div id="footer">
<p>©2009 | Søderberg multimedie og indretning</p>
</div></center>
</div>
</body>
</html>
Følgende er min CSS:
@charset "utf-8";
/* CSS Document */
html, body {
margin: 0;
padding: 0;
}
body {
background-color: #ed1c24;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
Background-image:url(../images/1.jpg);
Background-repeat:repeat;
background-attachment:fixed;
}
#indhold{
width: 995px;
background-color: #ffffff;
margin-left: auto;
margin-right: auto;
}
#menu{
float: left;
width: 100%;
margin: 0;
padding: 0;
background-color: #ffffff;
border-bottom: solid;
border-bottom-color: #666666;
border-bottom-width:thin;
border-top: solid;
border-top-color: #666666;
border-top-width:thin;
height: 20px;
padding-bottom:30px;
font-size:9px;
}
#menu ul li{
display: inline;
}
#menu ul li a{
float: left;
color: #666666;
padding: 10px;
padding-left: 4px;
text-decoration: none;
}
#menu ul li a:visited{
color: #666666;
}
#menu ul li a:hover{
color: #de264c;
}
#flash{
clear:both;
padding-top:30px;
padding-bottom:30px;
}
#footer {
background: #ffffff;
height: 20px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
border-top: solid;
border-top-color: #666666;
border-top-width:thin;
padding: 8px 25px;
border-bottom: solid;
border-bottom-color: #666666;
border-bottom-width:thin;
padding: 8px 25px;
line-height: 10px;
}
#flashGalleri {
background-color:#000000;
clear:both;
padding-left: 35px;
}
#formular{
background-color:#ffffff;
clear:both;
padding-left: 35px;
}
#menu3{
background-color: #ffffff;
border-bottom: solid;
border-bottom-color: #666666;
border-bottom-width:thin;
border-top: solid;
border-top-color: #666666;
border-top-width:thin;
height: 40px;
}@charset "utf-8";
/* CSS Document */
html, body {
margin: 0;
padding: 0;
}
body {
background-color: #ed1c24;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
Background-image:url(../images/1.jpg);
Background-repeat:repeat;
background-attachment:fixed;
}
#indhold{
width: 995px;
background-color: #ffffff;
margin-left: auto;
margin-right: auto;
}
#menu{
float: left;
width: 100%;
margin: 0;
padding: 0;
background-color: #ffffff;
border-bottom: solid;
border-bottom-color: #666666;
border-bottom-width:thin;
border-top: solid;
border-top-color: #666666;
border-top-width:thin;
height: 20px;
padding-bottom:30px;
font-size:9px;
}
#menu ul li{
display: inline;
}
#menu ul li a{
float: left;
color: #666666;
padding: 10px;
padding-left: 4px;
text-decoration: none;
}
#menu ul li a:visited{
color: #666666;
}
#menu ul li a:hover{
color: #de264c;
}
#flash{
clear:both;
padding-top:30px;
padding-bottom:30px;
}
#footer {
background: #ffffff;
height: 20px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
color: #666666;
border-top: solid;
border-top-color: #666666;
border-top-width:thin;
padding: 8px 25px;
border-bottom: solid;
border-bottom-color: #666666;
border-bottom-width:thin;
padding: 8px 25px;
line-height: 10px;
}
#flashGalleri {
background-color:#000000;
clear:both;
padding-left: 35px;
}
#formular{
background-color:#ffffff;
clear:both;
padding-left: 35px;
}
#menu3{
background-color: #ffffff;
border-bottom: solid;
border-bottom-color: #666666;
border-bottom-width:thin;
border-top: solid;
border-top-color: #666666;
border-top-width:thin;
height: 40px;
}
Siden validerer, men forstår ikke hvorfor den hopper som sagt......
Er der noget jeg kan gøre for at undgå dette?
