Click here to Skip to main content
15,901,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

i have a website in which i want to add the service center feature for this i have an image in which i have some link those link provide the service center facility
i want that image should appear on every page on my website.and also move when i scrolll the scroll bar.

plz help me out to code for this feature.i have a link of a website in which this feature is used.

the website link is http://www.m-specimen.com/index.html[^]
please help me out to doing this in vb.net


thanks and regard
subiya ahsan

[edit]web address converted to link - OriginalGriff[/edit]
Posted
Updated 27-Apr-11 19:45pm
v2
Comments
Rahul Chitte 28-Apr-11 2:56am    
Hi, I have gone through the link that you provided and it seems that you have already implemented this feature. -Rahul
Manfred Rudolf Bihy 28-Apr-11 10:33am    
OP said: "I have a link of a website in which this feature is used!"
Why OP didn't take a look how it was accomplished though is beyond me to tell.
Sandeep Mewara 28-Apr-11 5:24am    
What kind of help?
ahsan.subiya 2-May-11 1:38am    
i want to add this feature in my website as well .so wana asked how can i do this for my website.can u provide me the code

1 solution

To make this sort of feature and make it look better too, rather than jerkiness, slow reactions when you scroll the scroll bar you can get perfect fixed position on screen, you should use absolute or fixed positioning with CSS on your image. A good place to start is w3schools' tutorial on CSS and positioning:

W3Schools - Positioning[^]

with specific reference to the fixed positioning example that does exactly what you want:
W3Schools TryIt - Fixed Positioning[^]

However, bewarey of using fixed or absolute positioning as you can get overlapping of elements (explained on W3School page I linked to) and related torubles with different browser sizes - don't set stuff as fixed sizes and distances - use fluid layouts! :)

Hope this helps,

Ed
 
Share this answer
 
Comments
ahsan.subiya 2-May-11 1:41am    
sir i add this code in my website's master page for doin g this the and i also add an external style sheet in which i add this class code is as follows---
<img src="http://www.progseed.in/images/1286351217_Update.png" class="pos_fixed"/>

bt the problem is the pic is not changing the postion with scrolling the scroll bar

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900