/    Sign up×
Community /Pin to ProfileBookmark

Need to make image and drop-down menu float together

I am using a javascript program called “Menu Generator 2.1.5”. I have a logo image (about 1.5″ x 7″) that I want to sit directly on a .5″ x 7″ row of drop-down menus, and make the menu row and logo bar react as a single unit, and float at the top of the screen no matter how far down I scroll. Right now, I’ve got the logo bar in a top frame, and the menu bar and content in a second frame. The two do butt up to each other and look good, and when I scroll down, the menu bar moves with me while the logo bar stays static in the top frame (but *looking* like it’s moving with the menu bar), so that’s perfect. The only problem is that I didn’t want to have *any* frames on my webpage, but rather one whole page.

Here’s what I hope is the relevant coding —

[code=php]
<link type=”text/css” href=”twm_styles.css” rel=stylesheet>
<script type=”text/javascript” src=”dyn_base_lib.js”> </script>

<script type=”text/javascript”>
var twm_pics_url = “./pics/”;
var scrolling = true;
</script>

<script type=”text/javascript” src=”dyn_menu_gen_1.js”></script>
<script type=”text/javascript” src=”dyn_menu_lst.js”> </script>
<script type=”text/javascript” src=”dyn_menu_gen_2.js”></script>

</head>

<body onLoad=”twb_start();” onResize=”twb_refresh();”>
[code=php]

Where in that would I call the logo bar so that it would sit directly on top of the menu bar, and both would float together?

Mysti
([email protected])

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

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