PDA

View Full Version : suddenly braindead.....ok maybe not so sudden


jrmorris1958
09-04-2002, 08:33 PM
i have a website on which i have static buttons that scroll with the user .......everything seems to work fine at higher resolution...however if user has say a 800x600 res. or if the screen is minimized at higher resolution the page scrools past the content and continues scrolling forever....is there a way to stop this.....the following is the site url followed by coding used in site:

http://www.enter.net/~jrmorris/services.html



<HTML>
<HEAD>

<TITLE>creative feel web design - services</TITLE>
<STYLE>
<!--

BODY {background: url(images/bgbar3.jpg)}
-->
</STYLE>
<SCRIPT LANGUAGE="JavaScript">

image1 = new Image();
image1.src = "images/home2.jpg";

image2 = new Image();
image2.src = "images/about2.jpg";

image3 = new Image();
image3.src = "images/service2.jpg";

image4 = new Image();
image4.src = "images/client2.jpg";

image5 = new Image();
image5.src = "images/process2.jpg";

image6 = new Image();
image6.src = "images/contact2.jpg";

image7 = new Image();
image7.src = "images/link2.jpg";

image8 = new Image();
image8.src = "images/flash2.jpg";
var offsetleft=10
var offsettop=175

var ns4=document.layers
var ie4=document.all
var ns6=document.getElementById&&!ie4

/*
Static menu script II (By maXimus, maximus@nsimail.com, http://maximus.ravecore.com/)
Modified slightly/ permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

function makeStatic() {
if (ie4) {object1.style.pixelTop=document.body.scrollTop+offsettop}
else if (ns6) {document.getElementById("object1").style.top=window.pageYOffset+offsettop}
else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}
setTimeout("makeStatic()",0);
}
onload=makeStatic
</SCRIPT>

</HEAD>
<BODY>

<TABLE width="100%"><tr>
<TD width="4%">
</TD>
<TD align=left valign=top width="60%">
<IMG SRC="images/logo.gif">
</TD>
<TD align=center valign=middle width="36%">
<IMG SRC="images/creativeblock3.jpg">
</TD></tr>
</TABLE>

<TABLE width="100%">
<TD width=130>
</TD>
<TD>
<hr color=000000>
<CENTER>
<B>SERVICES</B></FONT>
</CENTER>
<hr color=000000>
</TD>
</TABLE>
<TABLE WIDTH="100%" height=30>
<TD ></TD>
</TABLE>
<TABLE WIDTH="100%">
<TD WIDTH="15%"></TD>
<TD ALIGN=LEFT WIDTH="75%">
<B>Graphic Design</B>
<BR>
In addition to great content, you'll also want a top quality design that creates the image you want to communicate to your visitors.
</P>
<P>
The color scheme, graphic elements and type styles used in your web site will convey a specific tone and image to the visitor. Whether you want to present yourself as powerful and professional, serene and spiritual or funky and hip, we will create a custom look for your site. We can work with any existing graphics you already use in your marketing materials, or we can begin from scratch.
</P>
</TD>
<TD WIDTH="10%"></TD>
</TABLE>
<TABLE>
<TD WIDTH="15%"><TD></TD>
<TD WIDTH="50%">
<P>
We won't just create a graphic to match your style. We'll also make sure that:
</P>
<P><B>
* your site has quick-loading pages<BR>
* visitors can easily navigate your site<BR>
* the site works well with different web browsers and platforms<BR>
* the site is easy to find by being ‘search engine friendly’, which<BR>
&nbsp;&nbsp; means making sure your pages are content-rich.
</B>
</P>
</TD>
<TD ALIGN=CENTER WIDTH="35%"></TD>
</TABLE>
<TABLE WIDTH="100%">
<TD WIDTH="15%"></TD>
<TD ALIGN=left WIDTH="75%">
<B>Site Pizzazz</B><BR>
While we love wildly creative web sites, we also know that design must serve content and not overwhelm it. Most of your visitors want information about you, or to buy your products and services, or to contact you. We will ensure that the information they want is easy to find.

<BR><P>
We can add pizzazz to your site in the form of button rollovers, pop-up menus, simple gif animations and Flash animations. But we’ll only add these if the dazzle doesn’t get in the way of your visitor’s quest for information.
</P>
<P>
If music clips are crucial to your site's goals and style, we can add them, too.
</P>
<P><B>
Site Interactivity</B><BR>
Do you need an interactive site with visitor feedback or contact forms? No problem. We’ll put them in. If you need more complex scripts for features such as password protection, e-cards or databases, we can accomplish that as well.
</P>
<P><B>
E-commerce</B><BR>
If you want to sell goods or services over the internet, we can:
</P>
<P><B>
* set up a shopping cart service for your site<BR>
* refer you to an online credit card processing company.

</B></P>
<P>
Whether you are selling a few items or a large inventory, we can help you decide which type of e-commerce service is best for you.
</P>

<P><B>
Promotion Strategies</B><BR>
If a tree falls in the forest, does anybody hear? If your site appears on the world wide web, will anybody come?
</P>
<P>
They will if you create and carry out a strong promotion strategy and marketing plan. We offer free promotion tips through our newsletter for everyone.
</P>
<P>
If we design your web site from scratch or do a makeover to your current site, we also offer a full line of promotion consulting services, including:
</P>
<P><B>
* editing your content to make it search engine friendly<BR>
* submitting your site to search engines<BR>
* developing a reciprocal link strategy</B>
</P>

<P><B>
Web Site Makeovers</B><BR>
Do you currently have a web site, but it needs a facelift? Perhaps your current site is hard to use or hasn’t brought you the visibility or business you want. Maybe the search engines don’t find it reliably. We excel at redesigning existing sites to make them even better and more effective. Contact us for more information about our make-over service.
</P>
<P><B>
Site Maintenance and Updating</B><BR>
Adding frequently updated, fresh content to your site is the key to bringing visitors back to your site again and again. Fresh content also is an important part of staying ‘visible’ to search engines — some search engines may even drop you if you don’t update your content! Contact us for details about our maintenance plan.
</P>

<TD></tr>
</TABLE>
<TABLE WIDTH="100%" height=30>
<TD ></TD>
</TABLE>
<TABLE WIDTH="100%">

<TD align=center>
<CENTER><B>Creative Feel Web Design<P>
436 East Penn St.<BR>
Nazareth, PA. 18064<BR>
610-759-5033<BR>
<A HREF="mailto:info@creativefeelwebdesign.com">info@creativefeelwebdesign.com</A>
</CENTER>
</TD>
</TABLE>

<div id='object1' style='position:absolute; top:175px; left:20px'>
<TABLE border=0 cellpadding=5 cellspacing=0>
<TR><TD><A href="indexC.html" onmouseover="image1.src='images/home2.jpg';" onmouseout="image1.src='images/home1.jpg';">
<img name="image1" src="images/home1.jpg" border=0 ALT="Creative Feel-Home"></A></TD></TR>
<TR><TD><A href="about.html" onmouseover="image2.src='images/about2.jpg';" onmouseout="image2.src='images/about1.jpg';">
<img name="image2" src="images/about1.jpg" border=0 ALT="Creative Feel Web Design-Information About Us"></A></TD></TR>
<TR><TD><A href="services.html" onmouseover="image3.src='images/service2.jpg';" onmouseout="image3.src='images/service1.jpg';">
<img name="image3" src="images/service1.jpg" border=0 ALT="Creative Feel Web Design - Services"></A></TD></TR>
<TR><TD><A href="clients.html" onmouseover="image4.src='images/client2.jpg';" onmouseout="image4.src='images/client1.jpg';">
<img name="image4" src="images/client1.jpg" border=0 ALT="Creative Feel Web Design - Clients"></A></TD></TR>
<TR><TD><A href="process.html" onmouseover="image5.src='images/process2.jpg';" onmouseout="image5.src='images/process1.jpg';">
<img name="image5" src="images/process1.jpg" border=0 ALT="Creative Feel Web Design - Design Process"></A></TD></TR>
<TR><TD><A href="contact.html" onmouseover="image6.src='images/contact2.jpg';" onmouseout="image6.src='images/contact1.jpg';">
<img name="image6" src="images/contact1.jpg" border=0 ALT="Creative Feel Web Design - Contact Us"></A></TD></TR>
<TR><TD><A href="links.html" onmouseover="image7.src='images/link2.jpg';" onmouseout="image7.src='images/link1.jpg';">
<img name="image7" src="images/link1.jpg" border=0 ALT="Creative Feel Web Design -Favorite Links"></A></TD></TR>
<TR><TD><A href="creative1.html" onmouseover="image8.src='images/flash2.jpg';" onmouseout="image8.src='images/flash1.jpg';">
<img name="image8" src="images/flash1.jpg" border=0 ALT="Creative Feel- Flash Site"></A></TD></TR>
</TABLE>
</div>

</BODY>
</HTML>


any help would be appreciated........thanks

beetle
09-04-2002, 10:54 PM
Link is broken for me

jrmorris1958
09-05-2002, 06:41 AM
ok truly brain dead had wrong url should be:

http://www.enter.net/~jrmorris1958/services.html


sorry

RadarBob
09-05-2002, 02:01 PM
I took a look at 600x800, Windoze 98, IE 5.5..

Seems to me that the button-set extends below the visible part of the browser window - thus enabling scrolling. Your code, however, moves the button-set down as I scroll up. It becomes a game of the dog chasing his tail.

Turn off the "tail chasing" code or position the button-set higher so it's completely visible at 600x800.

RoyW
09-05-2002, 03:10 PM
Try changing the "makestatic()" function to this which will only start the "static positioning" if the menu is about to dissapear off the top of the page.

function makeStatic() {
if (ie4) {if(document.body.scrollTop>offsettop) object1.style.pixelTop=document.body.scrollTop;}
else if (ns6) {if(window.pageYOffset>offsettop) document.getElementById("object1").style.top=window.pageYOffset;}
else if (ns4) {if(window.pageYOffset>offsettop) document.object1.top=window.pageYOffset;}
setTimeout("makeStatic()",0);
}

jrmorris1958
09-06-2002, 07:19 PM
tried roys suggestion......still scrolls forever in lower resolution or minimized window.....anyone else have any suggestions?