kubbetamine Posted June 8, 2011 Share Posted June 8, 2011 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 Quote Link to comment Share on other sites More sharing options...
Lastman Posted June 8, 2011 Share Posted June 8, 2011 (edited) 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 June 8, 2011 by Lastman Quote Link to comment Share on other sites More sharing options...
kubbetamine Posted June 9, 2011 Author Share Posted June 9, 2011 Çok sağolasın kardeşim, günlerdir tırmaladığım şeyi sanırım yapıcam sayende. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.