Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [js]Miniaturki z opisem
kogutor
post
Post #1





Grupa: Zarejestrowani
Postów: 25
Pomógł: 0
Dołączył: 11.03.2007
Skąd: Jaworzno

Ostrzeżenie: (0%)
-----


Jak zrobić cosik takiego jak tu : http://www.krn.pl/szukaj_nieruchomosci.php...p;pll=&plh= aby po najechaniu myszką na link pokazywał się obrazek i opis w jednej ramce?

Ten post edytował Cienki1980 11.04.2007, 14:53:53
Go to the top of the page
+Quote Post
mike
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

Ostrzeżenie: (0%)
-----


Zmień tag w tytule wątku bo to nie ma żadnego związku z PHP.
overLIB
Go to the top of the page
+Quote Post
kogutor
post
Post #3





Grupa: Zarejestrowani
Postów: 25
Pomógł: 0
Dołączył: 11.03.2007
Skąd: Jaworzno

Ostrzeżenie: (0%)
-----


Cytat(mike_mech @ 11.04.2007, 14:13:48 ) *
Zmień tag w tytule wątku bo to nie ma żadnego związku z PHP.
overLIB

No to teraz jak nie widnieje żaden TAG rozumię że jesteś w stanie mi pomóc?(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
mike
post
Post #4





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

Ostrzeżenie: (0%)
-----


Jak nie ma tagu to zaraz ktoś Ci ten wątek zemknie (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
Przecież dałem Ci linka do gotowca, czego jeszcze oczekujesz?

Ten post edytował mike_mech 11.04.2007, 14:53:48
Go to the top of the page
+Quote Post
Cienki1980
post
Post #5





Grupa: Przyjaciele php.pl
Postów: 1 590
Pomógł: 40
Dołączył: 11.01.2007
Skąd: Centrum

Ostrzeżenie: (0%)
-----


Teraz to ja zamknę wątek bo nie ma tagu (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) a być powinien zgodnie z zasadami panującymi na forum Przedszkole (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)


A tak na serio to podejrzyj sobie kod strony ( źródło ) i wszystko jest tam jasno opisane jak to jest zrobione.

PS. Zmieniłem tag na [js] bo tego się ten wątek dotyczy
Go to the top of the page
+Quote Post
Kuva
post
Post #6





Grupa: Zarejestrowani
Postów: 91
Pomógł: 0
Dołączył: 24.03.2007

Ostrzeżenie: (80%)
XXXX-


Skrypt:
STĄD POBIERZ SKRYPT

A to treśc:

  1. <a title="cssbody=[dvbdy1] cssheader=[dvhdr1] header=[&nbsp;&nbsp;Informacje] body=[<img src='ADRES OBRAZKA' style='vertical-align:middle'><br>OPIS]" style="vertical-align:middle;font-family:arial;font-size:11px;font-weight:bold;color:#2b2b2b;cursor:pointer" href=ODNOSNIK>JAKISTYTUŁ</a>


LUB

(To napewno działa)

Dodaj gdziekolwiek
  1. <div id="t1" class="tip"><center><img src="ADRESOBRAZKA">&nbsp;&nbsp; OPIS</center></div>


POTEM w BODY:
  1. var DH = 0;var an = 0;var al = 0;var ai = 0;if (document.getElementById) {ai = 1; DH = 1;}else {if (document.all) {al = 1; DH = 1;} else { browserVersion = parseInt(navigator.appVersion); if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {an = 1; DH = 1;}}} function fd(oi, wS) {if (ai) return wS ? document.getElementById(oi).style:document.getElementById(oi); if (al) return wS ? document.all[oi].style: document.all[oi]; if (an) return document.layers[oi];}
  2. function pw() {return window.innerWidth != null? window.innerWidth: document.body.clientWidth != null? document.body.clientWidth:null;}
  3. function mouseX(evt) {if (evt.pageX) return evt.pageX; else if (evt.clientX)return evt.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft); else return null;}
  4. function mouseY(evt) {if (evt.pageY) return evt.pageY; else if (evt.clientY)return evt.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop); else return null;}
  5. function popUp(evt,oi) {if (DH) {var wp = pw(); ds = fd(oi,1); dm = fd(oi,0); st = ds.visibility; if (dm.offsetWidth) ew = dm.offsetWidth; else if (dm.clip.width) ew = dm.clip.width; if (st == "visible" || st == "show") { ds.visibility = "hidden"; } else {tv = mouseY(evt) + 20; lv = mouseX(evt) - (ew/4); if (lv < 2) lv = 2; else if (lv + ew > wp) lv -= ew/2; if (!an) {lv += 'px';tv += 'px';} ds.left = lv; ds.top = tv; ds.visibility = "visible";}}}
  6. function hide(evt,oi) {if (DH) {var wp = pw(); ds = fd(oi,1); dm = fd(oi,0); st = ds.visibility; if (dm.offsetWidth) ew = dm.offsetWidth; else if (dm.clip.width) ew = dm.clip.width; if (st == "hidden" || st == "hidden") { ds.visibility = "hidden"; } else {tv = mouseY(evt) + 20; lv = mouseX(evt) - (ew/4); if (lv < 2) lv = 2; else if (lv + ew > wp) lv -= ew/2; if (!an) {lv += 'px';tv += 'px';} ds.left = lv; ds.top = tv; ds.visibility = "hidden";}}}


NASTĘPNIE JAKO NAZWA NP. "ZOBACZ TEN HOTEL":
  1. <a onmouseover="popUp(event,'t1')" onmouseout="hide(event,'t1')" onclick="return false" href="#">ZOBACZ TEN HOTEL</a>


Myślę, że zrozumiałeś.

Ten post edytował Kuva 11.04.2007, 16:22:16
Go to the top of the page
+Quote Post
kogutor
post
Post #7





Grupa: Zarejestrowani
Postów: 25
Pomógł: 0
Dołączył: 11.03.2007
Skąd: Jaworzno

Ostrzeżenie: (0%)
-----


Wielkie dzięki mike_mech+cienki 1980+kuva za pomoc-coś ciężko dzisiaj myślę...pozdrawiam wszystkich...

Ten post edytował kogutor 11.04.2007, 16:17:57
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 16:06