/    Sign up×
Community /Pin to ProfileBookmark

Javascript rollover

Hi everbody.

I have a serious (for mine) problem with my website.
I’m creating the new website and want to make rollover image button. (Not like standart button)

I’m using javascript codes but internet explorer always blocked codes, reason for activeX.

Here is my codes,
[I]________________________________________________________
<SCRIPT LANGUAGE=”JavaScript”>
image1 = new Image();
image1.src = “buttonsweb.jpg”;
image2 = new Image();
image2.src = “buttonsgrafiktasarim.jpg”;
image3 = new Image();
image3.src = “buttonsmatbaa.jpg”;
image4 = new Image();
image4.src = “buttonshakkimizda.jpg”;
image5 = new Image();
image5.src = “buttonsiletisim.jpg”;
</script>
</HEAD>
<BODY><div id=EchoTopic>
<a href=”web.html” onMouseOver=”image1.src=’buttonsweb.jpg’;”
onmouseout=”image1.src=’Resimlerseffafbutton’;”>
<img name=”image1″ src=”Resimlerseffafbutton” border=0></a>
<a href=”grafik.html” onMouseOver=”image2.src=’buttonsgrafiktasarim.jpg’;”
onmouseout=”image2.src=’Resimlerseffafbutton’;”>
<img name=”image2″ src=”Resimlerseffafbutton” border=0></a>
<a href=”matbaa.html” onMouseOver=”image3.src=’buttonsmatbaa.jpg’;”
onmouseout=”image3.src=’Resimlerseffafbutton’;”>
<img name=”image3″ src=”Resimlerseffafbutton” border=0></a>
<a href=”hakkimizda.html” onMouseOver=”image4.src=’buttonshakkimizda.jpg’;”
onmouseout=”image4.src=’Resimlerseffafbutton’;”>
<img name=”image4″ src=”Resimlerseffafbutton” border=0></a>
<a href=”iletisim.html” onMouseOver=”image5.src=’buttonsiletisim.jpg’;”
onmouseout=”image5.src=’Resimlerseffafbutton’;”>
<img name=”image5″ src=”Resimlerseffafbutton” border=0></a>
_
__
______________________________________________________[/I]

How can I make rollover images, without blocking (ie7-8-9) activex controls.
Any help will be good.
Thanks.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@KorMay 17.2011 — 
I'm using javascript codes but internet explorer always blocked codes, reason for activeX.[/QUOTE]

It does not matter. That happens only locally. As long as you rise the document on a server, that annoying message will not appear anymore.
×

Success!

Help @Cemj spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...