Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Load slike kada misem idem na <a href="#">Link</a>
Author Message
Storm Offline
Novi korisnik
*

Posts: 52
Joined: Jun 2011
Reputation: 1
Post: #1
Load slike kada misem idem na <a href="#">Link</a>
Pozzz ... sorry zbog nejasnog naslova ...
Ovako imam
PHP Code:
<a href="#"><img src="slika.png" width="50px" height="50px" ></a

Meni je potrebno kada odem na tu manju sliku 50x50 tacnije ikonu ! da mi se Otvori druga veca slika primjer 600x400 !

Hvala unaprjed ! :)
27-10-2011 08:17 PM
Find all posts by this user Quote this message in a reply
stefendoza Offline
Redoviti posjetitelj
**

Posts: 81
Joined: Apr 2010
Reputation: 1
Post: #2
RE: Load slike kada misem idem na <a href="#">Link</a>
Pa tu gde si napisao a href="#" u stvari pises link do tvoje vece slike. Recimo smestis velike slike te tvoje rezolucije u jedan folder i onda upisujes putanju. NPR:

Code:
<a href="imefolder/velikaslika.jpg"><img src="slika.png" width="50px" height="50px" ></a>
28-10-2011 03:32 PM
Find all posts by this user Quote this message in a reply
Storm Offline
Novi korisnik
*

Posts: 52
Joined: Jun 2011
Reputation: 1
Post: #3
RE: Load slike kada misem idem na <a href="#">Link</a>
Hvala na pomoci ali ne trazim baš to ... :) meni treba kada odem mišem znaci :hover ... da mi se pojavi slika u drugom div tagu koji ce biti ogranicen na stranci sa jedne strane ce biti ikone a na drugoj prostor gdje ce se slika nekim javascriptom loadovat :\\ znaci da me ne prebacuje na drugu stranicu kako bi se slika loadovala ... heh He he a dalje ide kada kliknem na ikonu tj active tek me onda prebacuje na stranicu ... posebnu za taj artikal primjer ! He he
28-10-2011 03:53 PM
Find all posts by this user Quote this message in a reply
Gogy Offline
____
*

Posts: 2,379
Joined: Feb 2006
Post: #4
RE: Load slike kada misem idem na <a href="#">Link</a>
Ako sam te dobro shvatio što želiš...

U head:
Code:
<script type="text/javascript">
function loadImage()
{
    document.getElementById("image").innerHTML = "<img src='images/velika.jpg' />";
}
</script>

U body:
Code:
<img src="images/mala.jpg" onMouseOver="loadImage();" />

<div id="image"></div>

Pravila foruma | Twitter - Facebook - Google+ |
28-10-2011 08:48 PM
Visit this user's website Find all posts by this user Quote this message in a reply
danielvast Offline
Forumaš
***

Posts: 432
Joined: Dec 2009
Reputation: 22
Post: #5
RE: Load slike kada misem idem na <a href="#">Link</a>
Sve je Gogy rekao :) nemam sta dodati

"When all else fails, read the manual."
28-10-2011 11:56 PM
Find all posts by this user Quote this message in a reply
Storm Offline
Novi korisnik
*

Posts: 52
Joined: Jun 2011
Reputation: 1
Post: #6
RE: Load slike kada misem idem na <a href="#">Link</a>
Eh to je to ... hvala puno ali imam jos jedno pod pitanje :P ... kako da to napravim za svaku sliku sad ima tu vise malih slika ...
a da se naravno slike te otvaraju kao sto je to u ovom primjeru u istom prozoru ... znaci sve isto samo kad sad idem na drugu ikonu
da se otvara druga slika ... - Isto samo mnozina na toj jednoj stranici je mnogo tih ikonica svaka treba imati svoju sliku ... Sorry sto ja ovo malo zbunjujuce ovako ... ((:
29-10-2011 01:25 AM
Find all posts by this user Quote this message in a reply
danielvast Offline
Forumaš
***

Posts: 432
Joined: Dec 2009
Reputation: 22
Post: #7
RE: Load slike kada misem idem na <a href="#">Link</a>
U head:
Code:
<script type="text/javascript">
function loadImage(path)
{
    document.getElementById("image").innerHTML = "<img src='" + path + "' />";
}
</script>

U body:

Code:
<img src="images/mala.jpg" onMouseOver="loadImage('put/do/slike.jpg');" />
<div id="image"></div>

Evo samo sam malo prepravio Gogy-ev kod. Namigivanje

"When all else fails, read the manual."
29-10-2011 10:26 AM
Find all posts by this user Quote this message in a reply
Storm Offline
Novi korisnik
*

Posts: 52
Joined: Jun 2011
Reputation: 1
Post: #8
RE: Load slike kada misem idem na <a href="#">Link</a>
Heh. Hvala vam mnogo! (:
Heh ! xD jesam naporan covjek ... sorry ali evo jos nest vezano za ovo ... kako da ubacim primjer ako je slika velicine 700x500 ...
da se ta slika loaduje kao slika velicine 340x430 ! He he a da ne moram u PhotoShopu smanjiti i ti i uz to vec sam koristio za malu sliku ...
<img src="game-icons/primjer.png" width="50px" height="50px" onMouseOver="loadImage('put/do/slike.jpg'); />
(This post was last modified: 29-10-2011 01:14 PM by Storm.)
29-10-2011 12:23 PM
Find all posts by this user Quote this message in a reply
danielvast Offline
Forumaš
***

Posts: 432
Joined: Dec 2009
Reputation: 22
Post: #9
RE: Load slike kada misem idem na <a href="#">Link</a>
U head stavi:
Code:
<script type="text/javascript">
function loadImage(path)
{
    document.getElementById("image").innerHTML = "<img src='" + path + "' width='340px' height='430px' />";
}
</script>

Nisi naporan samo ti pitaj i nemoras se izvinjavati Namigivanje

"When all else fails, read the manual."
29-10-2011 01:22 PM
Find all posts by this user Quote this message in a reply
Storm Offline
Novi korisnik
*

Posts: 52
Joined: Jun 2011
Reputation: 1
Post: #10
RE: Load slike kada misem idem na <a href="#">Link</a>
Tnx Dani ! He he
29-10-2011 01:59 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)