สอบถามถึงการทำเว็บแบบนี้ค่ะ

เริ่มโดย NooNaamz, 26 กันยายน 2012, 14:48:52

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

NooNaamz

คือหนูต้องการให้คนที่คลิกเข้า เว็บ A แล้วมันไปเปิด เว็บ B ด้วย โดยที่คนคลิกเข้ามาเว็บ A ไม่รู้ หรือไม่ทราบคร่ะ
พอมีวิธีทางไหนบ้างคร่ะ

+1 ให้กับคำตอบที่ทำได้ทุกๆ ท่านคร่ะ

Paodekcal

คือมันทำได้ครับ แต่ว่ามันก็ติด Block Pop-up ของ ฺbrowser อยู่ดี
ตัวอย่างไฟล์ index.html ครับ
<!DOCTYPE html>
<html>
<meta
<head>
<script type="text/javascript">
function open_other_web(){
window.open("http://www.google.com","_blank");
}
</script>
<title>Our Web</title>
<body onload="open_other_web();">
Our Web
</body>
</html>


ศึกษาเพิ่มเติมได้ที่

http://stackoverflow.com/questions/4907843/open-url-in-new-tab-using-javascript

ouiweb

อ้างถึงจาก: NooNaamz ใน 26 กันยายน 2012, 14:48:52
คือหนูต้องการให้คนที่คลิกเข้า เว็บ A แล้วมันไปเปิด เว็บ B ด้วย โดยที่คนคลิกเข้ามาเว็บ A ไม่รู้ หรือไม่ทราบคร่ะ
พอมีวิธีทางไหนบ้างคร่ะ

+1 ให้กับคำตอบที่ทำได้ทุกๆ ท่านคร่ะ
code popup ครับ ส่วนมากคนไม่ค่อยชอบเข้าเว็บแบบนี้นะครับ
[direct=https://thailandherbs.wordpress.com]Pueraria Mirifica[/direct]
[direct=https://thailandreview.wordpress.com]Sardi 190[/direct]
[direct=https://siamreviews.wordpress.com]Sardi 190-Pueraria Mirifica[/direct]
[direct=https://puerariamirificapowder.wordpress.com]Pueraria Mirifica Powder[/direct]
[direct=https://addurlwebsite.wordpress.com]Research on Pueraria Mirifica[/direct]

smapan

ใ้ช้ popunder ครับ

<script>

//Pop-under window- By JavaScript Kit
//Credit notice must stay intact for use
//Visit http://javascriptkit.com for this script

//specify page to pop-under
var popunder="http://yahoo.com"

//specify popunder window features
//set 1 to enable a particular feature, 0 to disable
var winfeatures="width=800,height=510,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"

//Pop-under only once per browser session? (0=no, 1=yes)
//Specifying 0 will cause popunder to load every time page is loaded
var once_per_session=0

///No editing beyond here required/////

function get_cookie(Name) {
  var search = Name   "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset  = search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadornot(){
if (get_cookie('popunder')==''){
loadpopunder()
document.cookie="popunder=yes"
}
}

function loadpopunder(){
win2=window.open(popunder,"",winfeatures)
win2.blur()
window.focus()
}

if (once_per_session==0)
loadpopunder()
else
loadornot()

</script>
[direct=http://cp.siamhostweb.com/cart.php?gid=1]จูมล่าโฮส สยามโฮสเว็บ[/direct] [direct=http://www.modty.com]modty.com[/direct]
[direct=http://www.apartment.in.th]รวมที่พัก เช่ารายวัน ที่พักเช่ารายเดือนมากที่สุดแจ่มจริง[/direct]
***Tel 083-757-1515 ติดปัญหา Joomla ตรงไหนรับปรึกษาฟรี โทรมาเถอะครับ ถ้าตอบได้ช่วยแน่นอน ไม่มีกั้ก. ***

Pink.in.th

ไม่แน่ใจว่าตอบคำถามถูกหรือป่้าวนะค่ะ  ใช้เป็น Domain Pointer ดีไหมค่ะ โดยที่ไม่ต้องเขียนสคริปที่อีกเว็บหนึ่ง   :wanwan019:
[direct=http://www.pink.in.th]ผู้หญิง[/direct] [direct=http://www.showlnw.com][/direct]  [direct=http://www.showlnw.com]บริการออกแบบเว็บไซต์[/direct] 
ขายสคริปเกมส์เพียว ๆ ราคา 300 บาท, มีเกมส์ด้วยราคา 500 บาท ติดตั้งฟรี เลือก Theme ได้ครับ >> [direct=http://www.teawloei.com/gameonline1/]Theme 1[/direct]  [direct=http://www.teawloei.com/gameonline2/]Theme 2[/direct]

top18753


 
ปิดรับบริการ ชั่วคราว อย่างไม่มีกำหนดนะครับ

kungbest

จากคำตอบของทุกคนก็คงทำได้เรียบร้อยแล้วหละคับ

แต่ไม่สนับสนุนหากต้องการสร้างทราฟฟิกโดยใช้วิธีนี้ เพราะทราฟฟิกเว็บหลักก็จะหายไปโดยปริยาย  :o

siammbk

ปรกติถ้าเป็น popup ส่วนใหญ่ browser ก็จะบล๊อกต้องกด unblock ก่อนถึงจะแสดง
แต่ถ้ามีการเปิดไว้แล้วก็จะเด้งให้

แต่ลองคิดเล่นดูคับ เอามาวน loop ซะ page ที่เด้งมาก็จะเต็ม แบบถ้าเครื่องเก่าๆหน่อยก็มีค้างอ่ะคับ
ผมว่าก็เจอกันมาบ้างแหล่ะคับ ผมยังเคยโดนเลย  :wanwan019:
รับออกแบบเว็บไซต์ ทุกรูปแบบ งานใหญ่ๆ ระบบยากๆ ราคาแรงๆ คุยกันคับ
line : siammbk
tel : 095-675-8614