Forum'da ara:
Ara


Yazar Mesaj
Mesaj19.01.2012, 14:34 (UTC)    
Mesaj konusu: sayfanın yanında açılan sayfayla hareket eden menu veya kutu

sayfanın kenarında açılan sabit menü linki gibi bişey lazım vardı ama kaybettim??
Mesaj19.01.2012, 15:28 (UTC)    
Mesaj konusu:

tam olarak ne istediğini anlamadım fakat css ile kodladım ufak bir şey

#deneme{
background-color: #000000;
width: 250px;
heigth: 250px;
position:fixed;
margin: auto;
padding: auto;
top: 0;
left: 0;
}

<div id="deneme"> kod vs. buraya </div>

değerleri kendine göre ayarlarsın.
sayfanın sol kenarında sabir bir şey olacak bu kod ile ve aşağı indiğinde orada kalacak.
Mesaj19.01.2012, 15:58 (UTC)    
Mesaj konusu:

http://htmlarabul.tr.gg/xxx.htm


burdaki gibi olacak ama sağ taraftan tıklayınca çıkmasını istiyorum

http://www.huseyinalkan.com/hakkimda/ burdaki gibi
Mesaj19.01.2012, 16:05 (UTC)    
Mesaj konusu:

Kod:
Kod:
<style type="text/css">
<!--
.maskottt {width:100px; height:100px;
   position: fixed;
   right:10px;
   top:20px;
   width:100;
   border: 1px solid #000000;
   height: 100px;
   text-align: center;
   cursor: help;
   background-image: url(http://www.backgroundlabs.com/backgrounds/70.gif);
   background-repeat: repeat;
   background-position: center bottom;
   margin: 0px;
   padding-top: 10px;
   padding-right: 5px;
   padding-bottom: 2px;
   padding-left: 5px;
   color: #FF00FF;
}
-->
</style>
<div   class="maskottt">aaa</div>

______________
Mesaj19.01.2012, 16:06 (UTC)    
Mesaj konusu:

Css kodunda left: -50px; gibi değerler atanması gerek.
Şu an kaynaktan o kodu ayıramam fakat yaptığımda burada paylaşırım.
Mesaj19.01.2012, 16:07 (UTC)    
Mesaj konusu:

kardeş zaten verdiğim adreste bunun aynısını yaptım ben, bana sağ taraftan veya sol tarafta tıklayınca dışarı çıkcak lazım ornek verdim size
Mesaj19.01.2012, 18:20 (UTC)    
Mesaj konusu:

Böyle Bişey Buldum
Kod:

<script language=javascript>
NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")
moving=setTimeout('null',1);
lastY = 5;
function moveOut() {
if ((NS6 && parseInt(ssm.left)<0)||(IE && ssm.style.pixelLeft<0)||(NS && document.ssm.left<0))
{
clearTimeout(moving);moving = setTimeout('moveOut()', slideSpeed)
if (NS6){
ssm.left = parseInt(ssm.left)+10+"px";
}
if (IE){
ssm.style.pixelLeft += 10;
}
if (NS){
document.ssm.left += 10;
}
} else {
clearTimeout(moving);
moving=setTimeout('null',1);
}
}
function moveBack(){
clearTimeout(moving);
moving = setTimeout('moveBack1()', waitTime);
}
function moveBack1() {
if ((NS6 && parseInt(ssm.left)>(-menuWidth))||(IE && ssm.style.pixelLeft>(-menuWidth))||(NS && document.ssm.left>(-menuWidth)))
{
clearTimeout(moving);moving = setTimeout('moveBack1()', slideSpeed);
if (NS6){
ssm.left = parseInt(ssm.left)-10+"px";
}
if (IE){
ssm.style.pixelLeft -= 10;
}
if (NS){
document.ssm.left -= 10;
}
} else {
clearTimeout(moving);moving=setTimeout('null',2)
}
}
function makeStatic() {
if (NS6) {
winY = window.pageYOffset;
}
if (IE) {
winY = document.body.scrollTop;var NM=document.all('ssm').style
}
if (NS){
winY = window.pageYOffset;var NM=document.ssm
}
if (NS6||IE||NS){
if (winY!=lastY&&winY>YOffset-staticYOffset){
smooth = .2 * (winY - lastY - YOffset + staticYOffset);
} else if(YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
smooth = .2 * (winY - lastY);
} else {
smooth=0
}
if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (NS6) ssm.top=parseInt(ssm.top)+smooth+"px"
if (IE) NM.pixelTop+=smooth;
if (NS) NM.top+=smooth;
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)
}
}
function initSlide() {
if (NS6){
ssm=document.getElementById("ssm").style
ssm.visibility="visible";
ssm.left = -menuWidth + "px";    ;
} else if (IE) {
ssm.style.visibility = "visible"
ssm.style.pixelLeft = -menuWidth;
} else if (NS) {
document.ssm.left = -menuWidth;
document.ssm.visibility = "show"
}
if (menuIsStatic=="no") makeStatic();
}
function startMenu(menuHeader, barText) {
if (IE||NS6) {
document.write('<div id="ssm" style="visibility:hidden;position : absolute ;left : 0px ;top : '+YOffset+' ;Z-Index : 11;width:1px" onmouseover="moveOut()" onmouseout="moveBack()">')
}
if (NS) {
document.write('<span class="tablea" layer visibility="hide" top="'+YOffset+'" name="ssm" left="0" onmouseover="moveOut()" onmouseout="moveBack()">')
}
if (NS6){
document.write('<table border="0" cellpadding="0" cellspacing="0" width="'+(menuWidth+barWidth+2)+'" span class="tablea"><tr><td>')
}
tempBar=""
for (i=0;i<barText.length;i++) {
tempBar+=barText.substring(i, i+1)+"<br>"
}
document.write('<table cellpadding="0" cellspacing="2" width="'+(menuWidth+barWidth+2)+'" border="0" class="tableinborder"><tr><td class="tabletitle" width="'+(menuWidth-1)+'" height="5" align="center" valign="center"> <span class="smallfont"><b>'+menuHeader+'</b></span></td><td align="center" rowspan="100" width="'+barWidth+'" span class="tableb" valign="center"><p align="center"><span class="smallfont"><b>'+tempBar+'</b></span></p></td></tr>')
}
function addItem(text, link, target) {
if ( !target ) {
target = '_self';
} else {
target = '_blank';
}
document.write('<tr>');
document.write('<td span class="tablea" width="'+(menuWidth-1)+'">');
document.write('<ilayer><layer width="100%" align="center">');
document.write('<div align="center">');
document.write('<a href="'+link+'" class="ssmItems" target='+target+'>');
document.write('<span class="smallfont"> '+text+'</span></div></a>');
document.write('</layer></ilayer></td></tr>');
}
function addHdr(text) {
document.write('<tr><td span class="tabletitle" height="6" align="center" valign="center" width="'+(menuWidth-1)+'"> ');
document.write('<span class="smallfont"><b>'+text+'</b></span></td></tr>')
}
function endMenu() {
document.write('</table>')
if (NS6){document.write('</td></tr></table>')}
if (IE||NS6) {document.write('</div>')}
if (NS) {document.write('</layer>')}
if (NS6||IE||NS) setTimeout('initSlide();', 100)
}
//-->
YOffset=20; // no quotes!!
staticYOffset=20; // no quotes!!
slideSpeed=20 // no quotes!!
barWidth=25; // no quotes!!
waitTime=1000; // no quotes!! this sets the time the menu stays out for after the mouse goes off it.
menuWidth=120; // Must be a multiple of 10! no quotes!!
menuIsStatic="no";
linkTarget="_self";
startMenu("Sol Menu","Menu")
addItem("Güncel","http://www.catlak-site55.tr.gg");
addItem("Spor","http://www.catlak-site55.tr.gg");
addItem("Cep Telefonu","http://www.catlak-site55.tr.gg");
addItem("Programlar","http://www.catlak-site55.tr.gg");
addItem("MP3","http://www.catlak-site55.tr.gg");
addItem("Sohbet","http://www.catlak-site55.tr.gg");
addItem("Oyunlar","http://www.catlak-site55.tr.gg"); addHdr("HTML Kodları","http://www.catlak-site55.tr.gg");
addItem("CSS Tasarım","http://www.catlak-site55.tr.gg");
addItem("HTML Kodları","http://www.catlak-site55.tr.gg");
addHdr("HTML Kodları","http://www.catlak-site55.tr.gg");
endMenu()
</script>

______________
Önceki mesajları göster:   


Powered by phpBB © 2001, 2005 phpBB Group
Türkçe Çeviri: phpBB Türkiye & Erdem Çorapçıoğlu