Im trying to make a javascript that lets me click a banner and end up on a differnt page. i know the html code would be: <a href=http://www.SITE.com/ “ target=â€blankâ€><img src=http://www.site.com/images/banner.gif†></a> Code (markup): but how could i do that in java? or even a iframe? as i need it in java or iframe format. looked all over and cant find anything
er. java is to javascript what car is to carpet. and there are literally 100s of scripts that do dynamic js adverts or dynamic images etc. you really ought to look at either node.createElement or even document.write (which is bad for performance). https://developer.mozilla.org/en/DOM/document.createElement etc etc, good luck
that wasnt very helpful at all... no cars a carpet a car is a automobile, all i was asking was for a little help. the link you sent me isnt much help at all. as im still no further forward.
oh i am sorry. let me rephrase the car analogy: java has NOTHING to do with javascript (i know it's an unfortunate coincidence but there you have it). as for the other bit not being helpful - this is how support forums usually work: you search, you find, you try things out, you may fail and post work done by that point, people look at it and and try to find the bugs / fix it. freelance sites work differently: i need this, give me a quote. see the difference? people can easily spill out the 5-6 lines of javascript you'd need to get a basic model working but considering your skill level at this point and lack of effort, it will probably take a lot longer explaining it, making it scale, making it work and testing it. believe me, I have worked on creating interactive javascript adverts for clients before and it's no picnic / no easy matter (http://healthbeautylondon.com/pillarLive.php - take a look at the hotel adverts at the top, for instance) the link that i sent shows you how to dynamically create elements. anyway. http://jsfiddle.net/dimitar/auvDr/ -> how little is needed to replicate your html, exactly via the technique / link i sent you. you should go and learn a little bit, would you be expecting people to do your SEO for you?
I thought it must be target="_blank" You want to open a simple link in a new tab/browser window? http://lmgtfy.com/?q=javascript+open+new+window or http://alexking.org/blog/2005/12/30/new-windows You did not look enough I would say