CHINH PHỤC
Bạn có muốn phản ứng với tin nhắn này? Vui lòng đăng ký diễn đàn trong một vài cú nhấp chuột hoặc đăng nhập để tiếp tục.
Đăng nhập

Ghi nhớ
Latest topics
» Tôi sẽ đỗ đại học!
by vi01239984564 26/8/2024, 7:41 pm

» Kỷ niệm xưa của chúng ta
by nightWalker 9/2/2024, 6:49 pm

» Bị lệch khung cần người giúp đỡ
by webhuy28 7/10/2021, 10:34 pm

» [HỎI ĐÁP] Danh sách bạn bè không thể hiển thị
by anhdaodaica1 2/10/2021, 10:04 pm

» [HỎI ĐÁP] Thông tin tài khoản không thể lưu thay đổi
by anhdaodaica1 2/10/2021, 6:05 am

» Phim bố già full
by huy.pc52 24/8/2021, 12:20 am

» Xin code Box HTML cho Forumvi
by Larva 1/7/2021, 12:57 pm

» Hello Anh Em Chinh phục
by HoàngTửNaivip5p 28/5/2021, 5:03 am

» Trang chủ tin tức cập nhật HOT 2016
by kenbi05 1/1/2020, 11:02 pm

» Không Dang9 bài viết = hình ảnh được
by huy.pc52 30/11/2019, 10:52 am

» CHÚC ANH EM NĂM MỚI VUI VẺ TRÀNG ĐẦY HẠNH PHÚC
by sps.kủn 12/2/2019, 1:16 pm

» Skin CNTT-K3 2015 (Full Mod)[✔]
by kenbi05 6/7/2018, 12:30 am

» baivong, handsome,....
by sps.kủn 29/6/2018, 1:54 pm

» [SHARE] SKIN ĐHFM.V7 @PUNBB
by tonyhoaivu 2/5/2018, 2:37 pm

» Share Skin Xanh Dương Cùi Bắp
by tonyhoaivu 28/4/2018, 5:57 pm

» Xin Skin http://v1.hotrofm.net/
by tonyhoaivu 28/4/2018, 5:45 pm

» Xin Skin Rao Vặt
by tonyhoaivu 15/4/2018, 12:07 pm

» Làm Sao Để Xóa Khung Này
by tonyhoaivu 14/4/2018, 7:18 pm

» [Lập nhóm]Lập nhóm fm
by vietkanpy 31/3/2018, 11:53 am

» [Help] về server úp ảnh của phutu [✔]
by baivong 17/3/2018, 10:18 pm

» Đừng khóc cho “tôi – Chinh Phục!”…
by AnHung 27/2/2018, 5:33 pm

» [Share] Skin Diendandaihoc.com [ Punbb ] [✔]
by Lu Mờ 13/2/2018, 7:28 pm

» Mời mấy thím vào groups Forumotion Việt Nam.
by dang02315 13/2/2018, 12:40 am

» Có thể làm các kiểu giao diện được không?
by Lu Mờ 9/2/2018, 3:40 pm

» ltns chinhphuc.info
by Shinichi Kudo 27/1/2018, 2:27 am

Top posting users this week
No user


[Thắc mắc] Muốn hiện lại tooltip bị die js[✔]

3 posters

Go down

[Thắc mắc] Muốn hiện lại tooltip bị die js[✔] Empty [Thắc mắc] Muốn hiện lại tooltip bị die js[✔]

Bài gửi by anhdaodaica1 26/10/2013, 8:42 pm

Trước đây mình có dùng 1 loại tooltip (quên mất tên rồi) và muốn hiển thị tooltip này thì dùng "cú pháp"

Code:
<span onmouseover="showtip('nội dung');" onmouseout="hidetip();"></span>
Vì bị die js nên mình cũng del sạch css luôn, giờ muốn tìm lại nhưng tìm hoài không thấy

Ai biết js và css làm hiển thị loại tooltip này thì chỉ hộ mình

P/s: Mình cũng muốn đổi qua loại mới nhưng giờ forum của mình toàn áp dụng loại này (kể cả cái last) Buồn

Tks vì đã ghé thăm topic Yêu 
anhdaodaica1
anhdaodaica1
CPPurpleMember
CPPurpleMember

Chrome PhpBB2
Ngày đăng ký : 01/03/2011
Số bài : 857
CPP : -16

http://OtakuWorld.Biz

Về Đầu Trang Go down

[Thắc mắc] Muốn hiện lại tooltip bị die js[✔] Empty Re: [Thắc mắc] Muốn hiện lại tooltip bị die js[✔]

Bài gửi by Chúa Tể Địa Ngục 27/10/2013, 5:59 pm

Ko cóRose
Chúa Tể Địa Ngục
Chúa Tể Địa Ngục
CPYellowMember
CPYellowMember

Chrome PunBB
Ngày đăng ký : 15/07/2013
Số bài : 2203
CPP : 380
Châm ngôn sống : Không có gì cả :v

http://otaku-world.yourme.net

Về Đầu Trang Go down

[Thắc mắc] Muốn hiện lại tooltip bị die js[✔] Empty Re: [Thắc mắc] Muốn hiện lại tooltip bị die js[✔]

Bài gửi by anhdaodaica1 27/10/2013, 8:36 pm

Up
anhdaodaica1
anhdaodaica1
CPPurpleMember
CPPurpleMember

Chrome PhpBB2
Ngày đăng ký : 01/03/2011
Số bài : 857
CPP : -16

http://OtakuWorld.Biz

Về Đầu Trang Go down

[Thắc mắc] Muốn hiện lại tooltip bị die js[✔] Empty Re: [Thắc mắc] Muốn hiện lại tooltip bị die js[✔]

Bài gửi by handsomevip007 28/10/2013, 12:29 pm

Có lẽ là cái này
Code:
http://handsomevip007.googlecode.com/files/tooltips.js
Rose 
handsomevip007
handsomevip007
CPAdministrator
CPAdministrator

Opera Invision
Ngày đăng ký : 22/12/2010
Số bài : 6406
CPP : 11255
Châm ngôn sống : Tuổi trẻ sẽ dừng lại nhưng sáng tạo là mãi mãi ...

http://a14toiyeu.forumvi.net/

Về Đầu Trang Go down

[Thắc mắc] Muốn hiện lại tooltip bị die js[✔] Empty Re: [Thắc mắc] Muốn hiện lại tooltip bị die js[✔]

Bài gửi by anhdaodaica1 29/10/2013, 8:28 am

handsomevip007 đã viết:Có lẽ là cái này
Code:
http://handsomevip007.googlecode.com/files/tooltips.js
Rose 

Code:
var offsetfromcursorX = 12;
var offsetfromcursorY = 10;
var offsetdivfrompointerX = 10;
var offsetdivfrompointerY = 13;
document.write('<div id="dhtmltooltip"></div>');
document.write('<img id="dhtmlpointer" src="http://i44.servimg.com/u/f44/15/64/85/86/duoitt10.png">');
var ie = document.all;
var ns6 = document.getElementById && ! document.all;
var enabletip = false;
var  tipobj = document.getElementById("dhtmltooltip");
var pointerobj = document.getElementById("dhtmlpointer");
function ietruebody() {
   return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement : document.body;
}
String.prototype.trim = function () {
    return this.replace(/^\s*/, "").replace(/\s*$/, "");
}
function showtip(thetext, thewidth, thecolor) {
   if (ns6 || ie) {
      if (typeof thewidth != "undefined")
         tipobj.style.width = thewidth + "px";
      if (typeof thecolor != "undefined" && thecolor != "")
         tipobj.style.backgroundColor = thecolor;
      thetext = thetext.trim();
      var arr = thetext.split(" ");
      for(i=0;i<arr.length;i++)
         if(arr[i].length>=40)
            thetext=thetext.replace(arr[i],arr[i].substr(0,40)+"...");
      tipobj.innerHTML = thetext;      
      enabletip = true;
      return false;
   }
}
function positiontip(e) {
   if (enabletip) {      
      var nondefaultpos = false;
      var curX = (ns6) ? e.pageX : event.clientX + ietruebody().scrollLeft;
      var curY = (ns6) ? e.pageY : event.clientY + ietruebody().scrollTop;
      var winwidth = ie && ! window.opera ? ietruebody().clientWidth : window.innerWidth - 20;
      var winheight = ie && ! window.opera ? ietruebody().clientHeight : window.innerHeight - 20;
      var rightedge = ie && ! window.opera ? winwidth - event.clientX - offsetfromcursorX : winwidth - e.clientX - offsetfromcursorX;
      var bottomedge = ie && ! window.opera ? winheight - event.clientY - offsetfromcursorY : winheight - e.clientY - offsetfromcursorY;
      var leftedge = (offsetfromcursorX < 0) ? offsetfromcursorX * (- 1) : - 1000;
      if (rightedge < tipobj.offsetWidth) {
         tipobj.style.left = curX - tipobj.offsetWidth + "px";
         nondefaultpos = true;
      }
      else if (curX < leftedge)
         tipobj.style.left = "5px";
      else {
         tipobj.style.left = curX + offsetfromcursorX - offsetdivfrompointerX + "px";
         pointerobj.style.left = curX + offsetfromcursorX + "px";
      }
      if (bottomedge < tipobj.offsetHeight) {
         tipobj.style.top = curY - tipobj.offsetHeight - offsetfromcursorY + "px";
         nondefaultpos = true;
      }
      else {
         tipobj.style.top = curY + offsetfromcursorY + offsetdivfrompointerY + "px";
         pointerobj.style.top = curY + offsetfromcursorY + "px";
      }
      tipobj.style.visibility = "visible";

      if (! nondefaultpos)
         pointerobj.style.visibility = "visible";
      else
         pointerobj.style.visibility = "hidden";
   }
}
function hidetip() {
   if (ns6 || ie) {
      enabletip = false;
      tipobj.style.visibility = "hidden";
      pointerobj.style.visibility = "hidden";
      tipobj.style.left = "-1000px";
      tipobj.style.backgroundColor = '';
      tipobj.style.width = '';
   }
}
document.onmousemove = positiontip;
Sao mình chèn cả vào footer/header mà nó vẫn ko hiện nhỉ?
Mà khi chèn thử vào html thì nó lại hiện
Hands giải đáp hộ mình

Nick test: chinhphuc
pass: chinhphuc123
anhdaodaica1
anhdaodaica1
CPPurpleMember
CPPurpleMember

Chrome PhpBB2
Ngày đăng ký : 01/03/2011
Số bài : 857
CPP : -16

http://OtakuWorld.Biz

Về Đầu Trang Go down

[Thắc mắc] Muốn hiện lại tooltip bị die js[✔] Empty Re: [Thắc mắc] Muốn hiện lại tooltip bị die js[✔]

Bài gửi by handsomevip007 29/10/2013, 9:29 am

Mình không rõ lắm Nghi ngờ Nhưng script này phải lưu thành file rồi nhúng file script vào thì mới có tác dụng ahaha
handsomevip007
handsomevip007
CPAdministrator
CPAdministrator

Opera Invision
Ngày đăng ký : 22/12/2010
Số bài : 6406
CPP : 11255
Châm ngôn sống : Tuổi trẻ sẽ dừng lại nhưng sáng tạo là mãi mãi ...

http://a14toiyeu.forumvi.net/

Về Đầu Trang Go down

[Thắc mắc] Muốn hiện lại tooltip bị die js[✔] Empty Re: [Thắc mắc] Muốn hiện lại tooltip bị die js[✔]

Bài gửi by Sponsored content


Sponsored content


Về Đầu Trang Go down

Về Đầu Trang

- Similar topics

 
Permissions in this forum:
Bạn không có quyền trả lời bài viết