![]() |
|
|||||||
| Kayıt ol | Blogs | Yardım | Üye Listesi | Ajanda | iTrader | Forumları Okundu Kabul Et |
| Webmaster Genel Konular Webmaster Genel Konular |
|
|
|
LinkBack (2) | Seçenekler | Stil |
|
||||
|
Bunun gibi bişeymi arıyodunuz?
http://www.dynamicdrive.com/dynamici...thumbnail2.htm
__________________
Murat Karaoğlu |
|
||||
|
Hassasiyetiniz için öncelikle teşekkür ediyor ve şükranlarımı sunuyorum.
www.templatemonster.com adresinde önizleme olayını istiyorum. Yani mouseu çektiğim anda kapanacak önizleme. |
|
||||
|
Birazdan yapacağıma içerik çalma denmez herhalde, maksad paylaşım. Eminim onlarda paylaşırdı, bu konuyu bilseler
![]() Bu gerekli olan javascript. http://www.templatemonster.com/js/preview_templates.js Bu da örnek kod. Kod:
<a style="cursor: hand" href="/website-templates/18927.html" target="_blank"><IMG SRC="http://images.templatemonster.com/screenshots/18900/18927-m.jpg" border=0 border=1 style="border-color: 777777"
onmouseover="showtrail('http://images.templatemonster.com/screenshots/18900/18927-b.jpg ','Template 18927',430,447)" onmouseout="hidetrail()"
></a>
__________________
Bilgi Güçtür. |
|
|||
|
Örneği : http://www.yadigar.net/demo.php
demo.php Kod:
<html>
<head>
<script src="preview_templates.js" language="JavaScript" type="text/javascript"></script>
<script src="loader.js" language="JavaScript" type="text/javascript"></script>
</head>
<body>
<img src="http://images.templatemonster.com/screenshots/18900/18927-m.jpg" border=0 border=1 style="border-color: 777777" onmouseover="showtrail('http://images.templatemonster.com/screenshots/18900/18927-b.jpg ','Template 18927',430,449);" onmouseout="hidetrail();">
<div style="display: none; position: absolute;z-index:110; " id="preview_div"></div>
</body>
</html>
HTML-Kodu:
var t_id = setInterval(animate,20);
var pos=0;
var dir=2;
var len=0;
function animate()
{
var elem = document.getElementById('progress');
if(elem != null) {
if (pos==0) len += dir;
if (len>32 || pos>79) pos += dir;
if (pos>79) len -= dir;
if (pos>79 && len==0) pos=0;
elem.style.left = pos;
elem.style.width = len;
}
}
function remove_loading() {
this.clearInterval(t_id);
var targelem = document.getElementById('loader_container');
targelem.style.display='none';
targelem.style.visibility='hidden';
var t_id = setInterval(animate,60);
}
HTML-Kodu:
/*
Simple Image Trail script- By JavaScriptKit.com
Visit http://www.javascriptkit.com for this script and more
This notice must stay intact
*/
var offsetfrommouse=[15,25]; //image x,y offsets from cursor position in pixels. Enter 0,0 for no offset
var displayduration=0; //duration in seconds image should remain visible. 0 for always.
var defaultimageheight = 40; // maximum image size.
var defaultimagewidth = 40; // maximum image size.
var timer;
function gettrailobj(){
if (document.getElementById)
return document.getElementById("preview_div").style
}
function gettrailobjnostyle(){
if (document.getElementById)
return document.getElementById("preview_div")
}
function truebody(){
return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function hidetrail(){
gettrailobj().display= "none";
document.onmousemove=""
gettrailobj().left="-500px"
clearTimeout(timer);
}
function showtrail(imagename,title,width,height){
i = imagename
t = title
w = width
h = height
timer = setTimeout("show('"+i+"',t,w,h);",200);
}
function show(imagename,title,width,height){
var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth - offsetfrommouse[0]
var docheight=document.all? Math.min(truebody().scrollHeight, truebody().clientHeight) : Math.min(window.innerHeight)
if( (navigator.userAgent.indexOf("Konqueror")==-1 || navigator.userAgent.indexOf("Firefox")!=-1 || (navigator.userAgent.indexOf("Opera")==-1 && navigator.appVersion.indexOf("MSIE")!=-1)) && (docwidth>650 && docheight>500)) {
( width == 0 ) ? width = defaultimagewidth: '';
( height == 0 ) ? height = defaultimageheight: '';
width+=30
height+=55
defaultimageheight = height
defaultimagewidth = width
document.onmousemove=followmouse;
newHTML = '<div class="border_preview" style="width:'+ width +'px;height:'+ height +'px"><div id="loader_container"><div id="loader"><div align="center">Loading template preview...</div><div id="loader_bg"><div id="progress"> </div></div></div></div>';
newHTML = newHTML + '<h2 class="title_h2">' + ' '+title + '</h2>'
newHTML = newHTML + '<div class="preview_temp_load"><img onload="javascript:remove_loading();" src="' + imagename + '" border="0"></div>';
newHTML = newHTML + '</div>';
if(navigator.userAgent.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1 ){
newHTML = newHTML+'<iframe src="about:blank" scrolling="no" frameborder="0" width="'+width+'" height="'+height+'"></iframe>';
}
gettrailobjnostyle().innerHTML = newHTML;
gettrailobj().display="block";
}
}
function followmouse(e){
var xcoord=offsetfrommouse[0]
var ycoord=offsetfrommouse[1]
var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
var docheight=document.all? Math.min(truebody().scrollHeight, truebody().clientHeight) : Math.min(window.innerHeight)
if (typeof e != "undefined"){
if (docwidth - e.pageX < defaultimagewidth + 2*offsetfrommouse[0]){
xcoord = e.pageX - xcoord - defaultimagewidth; // Move to the left side of the cursor
} else {
xcoord += e.pageX;
}
if (docheight - e.pageY < defaultimageheight + 2*offsetfrommouse[1]){
ycoord += e.pageY - Math.max(0,(2*offsetfrommouse[1] + defaultimageheight + e.pageY - docheight - truebody().scrollTop));
} else {
ycoord += e.pageY;
}
} else if (typeof window.event != "undefined"){
if (docwidth - event.clientX < defaultimagewidth + 2*offsetfrommouse[0]){
xcoord = event.clientX + truebody().scrollLeft - xcoord - defaultimagewidth; // Move to the left side of the cursor
} else {
xcoord += truebody().scrollLeft+event.clientX
}
if (docheight - event.clientY < (defaultimageheight + 2*offsetfrommouse[1])){
ycoord += event.clientY + truebody().scrollTop - Math.max(0,(2*offsetfrommouse[1] + defaultimageheight + event.clientY - docheight));
} else {
ycoord += truebody().scrollTop + event.clientY;
}
}
gettrailobj().left=xcoord+"px"
gettrailobj().top=ycoord+"px"
}
|
|
||||
|
@Merthan: FF'ta çalıştı ama IE7'de çalışmıyor.
__________________
Murat Karaoğlu |
|
||||
|
Tamam arkadaşlar ben kodu buldum ve çalıştırdım.
İlgilenen herkese teşekkür ederim. Kodu paylaşayım sizlerle : <head></head> tagları arasına Kod:
<script type="text/javascript" src="jquery-1.2.2.pack.js"></script>
<style type="text/css">
#overlappopup{ /*don't change id name */
position: absolute; /*don't change position property */
z-index: 1000;
background: white;
border: 12px solid black;
padding: 10px;
left: 0;
top: 0;
visibility: hidden;
}
</style>
<script type="text/javascript" src="overlapviewer.js">
/***********************************************
* Overlap Image Viewer script- by JavaScript Kit (www.javascriptkit.com)
* This notice must stay intact for usage
* Visit JavaScript Kit at http://www.javascriptkit.com/ for this script and 100s more
***********************************************/
</script>
Kod:
<img src="minik resmin urlsi" width="150" height="125" class="jkimagelarge" title="büyük resmin urlsi" /> overlapviewer.js jquery-1.2.2.pack.js |
![]() |
LinkBacks (?)
LinkBack to this Thread: http://forum.iyinet.com/webmaster-genel-konular/88413-resim-onizlemesi-actirma.html
|
||||
| Konuyu Başlatan | For | Type | Tarih | |
| Resim Önizlemesi Açtırma | Yaramazadam | This thread | Pingback | 2008-03-29 11:10 | |
| Resim Önizlemesi Açtırma : RSS Dünyasi | This thread | Pingback | 2008-03-29 10:47 | |
| Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
| Seçenekler | |
| Stil | |
|
|
Benzer Konular
|
||||
| Konu | Konuyu Başlatan | Forum | Cevaplar | Son Mesaj |
| Rss konu açtırma | fan | Vbulletin VbSEO | 4 | 2007-11-17 22:46 |
| Php ileri Geri Sıralama (Onceki REsim Sonraki Resim) | FERDIKUCUK | PHP | 5 | 2007-11-12 17:59 |
| pr1 resim sitesinden SADECE resim siteleriyle link değişimi | Cagatay | Google PR Link Değişimi | 2 | 2007-11-05 19:33 |
| Siteye Girişte Yeni Bir Site Açtırma? (ceviz.net) | RSS | Ordan burdan konumuzla ilgili RSS ler | 0 | 2007-08-15 22:00 |
| Firefox da linki yeni sekmede açtırma. | ~Aykut | Firefox | 4 | 2005-06-08 19:00 |