Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

28467 Posts in 7971 Topics- by 10279 Members - Latest Member: thamwebsite
Opensource CMS Community ForumMambo Mambot (Moderators: i_am_keng, goangle)เอ่ พอมีบอทตัวไหน POP UP Flash ได้มั่งเน้อ
Pages: [1]   Go Down
Print
Author Topic: เอ่ พอมีบอทตัวไหน POP UP Flash ได้มั่งเน้อ  (Read 2479 times)
avalance
เทพแห่งบอร์ด
*

Karma: 2
Offline Offline

Posts: 523


รับทำเว็บด้วยจูมล่านะครับ

pcnott@live.com
WWW
« on: December 26, 2007, 12:39:33 pm »

คือ มีรูป thumnail หรือรูปธรรมดาเนี่ยแหล่ะครับ

แต่อยากคลิกแล้ว เป็น POP UP เล่นไฟล์ Flash น่ะครับ

ไม่เอา light box นะ เอาเป็น java scritp ธรรมดานี่แหล่ะครับ

ใครเคยใช้ หรือพอมี แบ่งปันหน่อยครับ

ขอบคุณมาก
Logged

yaknoi
มือใหม่หัดโพส
*

Karma: 0
Offline Offline

Posts: 24


chatsermsak@hotmail.com
WWW Email
« Reply #1 on: March 15, 2008, 11:38:16 pm »

แบบนี้หรือเปล่าครับ
ไปใส่ที่ <head>...</head>


<script language="JavaScript1.2">
function showRightMenu(){
// Test for absolute mouse position
var testTop = document.body.scrollTop + event.clientY;
var testLeft = document.body.scrollLeft + event.clientX;
var tooltipAbsLft = (testLeft > document.body.scrollLeft + document.body.width - rightmenu.style.width) ? testLeft - rightmenu.style.width : testLeft;
// Same for bottom of page
var tooltipAbsTop = (testTop > document.body.scrollTop + document.height - rightmenu.style.height) ? testTop - rightmenu.style.height : testTop;
// Place menu at specified position and make it visible
rightmenu.style.posLeft = tooltipAbsLft;
rightmenu.style.posTop = tooltipAbsTop;
rightmenu.style.visibility = "visible";
return (false);
}
// function used for hiding the custom right menu
function hideRightMenu(){
rightmenu.style.visibility = "hidden";
}
// When we ask for the context menu, show our custom menu
document.oncontextmenu = showRightMenu;
// If we click anywhere else on the document: hide menu
document.onclick = hideRightMenu;
</script>


ไปใส่ที่ <body>....</body>

<div ID="rightmenu" style="position: absolute; visibility:hidden; width:250">
<font face="MS Sans Serif" size="1">
<a href="http://www.yaknoi.co.cc">Download Service</a>
</font>
</div>


Code ข้างบน จะโชว์เป็น ข้อความลิ้งครับ
Logged

Webmaster : www.yaknoi.co.cc
MSN : chatsermsak@hotmail.com
Mail : administrator@yaknoi.co.cc
QQ : 6507645
ติดต่อได้ทุกเรื่อง
Pages: [1]   Go Up
Print
Jump to: