/    Sign up×
Community /Pin to ProfileBookmark

Help With Rolling Over Images

Hello All,

I’m doing a project and I am hoping that someone can help me out.

I plan to have about 6 – 8 images. I want to arrange them in shape, preferably a circle, but I don’t mind and as I roll the mouse over each one I want text to display in the center of the images.

Something similar to this

[url]http://tw.tmphosting.com/c2c.html[/url]

Thanks you so much. Hope to hear from somebody soon.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@Zach_ElfersDec 01.2002 — You would have to position the images with CSS to make them in a circle like you want. You could do this like this:

<style type="text/css">

img {

position:absolute;

top:50px;

left:20px;

}

</style>

You would have to change the pixel value to whatever you want to make it look right.

The thing where the text appears in the center could probably be done this way.

<head>

<script language="JavaScript" type="text/JavaScript">

<!-- Begin

function changeMenu(currMenu) {

if (document.getElementById) {

thisMenu = document.getElementById(currMenu).style

if (thisMenu.display == "block") {

thisMenu.display = "none"

}

else {

thisMenu.display = "block"

}

return false

}

else {

return true

}

}

// End -->

</script>

</head>

<body>

<img src="img1.gif" name="img1" onMouseOver="return changeMenu('menu1');" onMouseOut="return changeMenu('menu1');">

<img src="img2.gif" name="img2" onMouseOver="return changeMenu('menu2');" onMouseOut="return changeMenu('menu2');">

<center>

<div id="menu1" style="display:none;">

Text for the center

</div>

<div id="menu2" style="display:none;">

Text for the center

</div>

</center>

</body>
Copy linkTweet thisAlerts:
@kitora18authorDec 02.2002 — Hello

Your a genius, thanks for your help. There's two problems, the pictures are overlapping instead of going in a circle and the text is displaying in the center of the page instead of the center of the circle.

Thanks again for your help. I don't mean to bother you.


Kitora
Copy linkTweet thisAlerts:
@Zach_ElfersDec 02.2002 — I emailed you the answer after you emailed me.?
×

Success!

Help @kitora18 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.18,
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,
)...