Wrox Programmer Forums
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 20th, 2007, 03:27 AM
Authorized User
 
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default create a moving link/image

hello all,

I'd like to implement a really cool effect that I've seen on a few webpages and I'm sure you've all seen as well...but I'm not too sure if it's Javascript, DHTML, or something else. What I'm trying to achieve is the picture/link/etc. that moves along the page as you scroll down through the page. For example, it'd be like having the Wrox logo stay at the top-left of my browser, even if I scrolled down to the bottom of the page (this obviously isn't implemented here).

After a quick search, I found a site that has this effect, but I couldn't figure out the name of the effect or decipher how they did it from the page source. The link to this site is: http://www.milonic.com/mfa/2004-Janu...questions.html

The above link has the entire menu move along with you as you scroll through the page. I'm not looking for anything this complicated. I'd just like a simple hyperlink to stay at the top-right of the screen.

Does anyone know how to do this or know where I can find a tutorial? Even the name of this effect would help!

Thanks in advance!

Panuvin

 
Old October 26th, 2007, 07:09 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

If the "position" attribute for the header div is given as "fixed" results that affect.
see more about it at the following link
http://www.w3schools.com/css/pr_class_position.asp


- Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload image-create & save thumbnail-display image angshujit ASP.NET 2.0 Professional 6 July 11th, 2013 10:34 PM
Create properties for javascript link ismailc XSLT 3 December 10th, 2007 09:41 AM
Create link in Outlook talktorajeev C# 1 March 21st, 2006 11:53 AM
Image and Link in DataGrid Anantsharma ASP.NET 1.0 and 1.1 Basics 1 April 15th, 2005 12:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.