Jump to content

Tek Butondan Iki Ayrı Link?


Recommended Posts

Arkadaşlar merhaba.
Yapmaya çalıştığım kişisel sitem için şöyle birşeye ihtiyacım var: bir resme tıklayınca iki ayrı frame'in içeriğinin değişmesini istiyorum. Böyle birşeyin yapılabileceğini biliyorum ama nasıl yapılacağını bilmiyorum :) Çok uzun süredir araştırıyorum javascript ile yapılabileceği konusunda izlenimlerim oldu:) ama javascript hakkında bilgim olmadığından, bir resme javascript ile nasıl link verildiğini bilmediğimden yapamıyorum. En son şuna benzer bi kod olduğunu buldum biyerlerden belki size bir fikir verir diye düşünüyorum: onclick="document.getelementbyid('frame1').location.href='www.hedehodo.com';document.getelementbyid('frame2').location.href='www.hedehodo2.com'"
yardımcı olursanız sevinirim arkadaşlar

Link to comment
Share on other sites

aynı yere tıklayınca açılacaksa örnek kod:
[code]<html>
<head></head>
<body>
<a href="#" onClick="parent.frame1.location='http://www.google.com';parent.frame2.location='http://www.yahoo.com'; return false;">
<img height="100" src="http://www.bilimloji.com/wp-content/uploads/2009/10/googleyahoologos.jpg" /></a>
<br />
<iframe width="100%" height="300" name="frame1"></iframe><iframe width="100%" height="300" name="frame2"></iframe>
</body>
</html>[/code]

farklı yerlerine tıklayınca açılacaksa "html image mapping" diye arat bulursun.dreamweaver la falan daha kolay yapılabilir.

Edited by Lastman
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...