Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Firefox > urgent help needed

Reply
Thread Tools

urgent help needed

 
 
YourMind
Guest
Posts: n/a
 
      10-02-2005
I know this is not the right place to post web development questions,
but the code is done work only with firefox (1.0.6). Ok, here is it:
---------------------------------------.---------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>DHTML / floating div problem</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
body {
margin: 0px;
padding-top: 50px;
}
#toolbar {
background: black;
color: white;
position: fixed;
width: 98%;
left: 1%;
top: 0px;
height: 50px;
}
#toolbar #home {
width: 25px;
height: 25px;
position: relative;
background: red;
float: left;
top: 10px;
left: 10px;
}
</style>
<script language="javascript" type="text/javascript">
function init() {
setInterval(showSmoothly,100);
}
function showSmoothly() {
bar = document.getElementById('toolbar');
//_debug(bar.offsetHeight);
height = bar.style.height;
if(height)//alternative: use bar.offsetHeight instead
height = parseInt(height);
else
height = 0;
if(height >= 50) return;
_debug(height);
height += 4;
bar.style.height = height + 'px';
}

function _debug(argv) {
o = document.getElementById('_devel');
o.value = argv + "\n" + o.value;
}
window.addEventListener('load',init,true);
</script>
</head>
<body>
<div id="toolbar">
<span id="home"></span>
</div>
<textarea name="_devel" cols="80" rows="20" id="_devel"></textarea>
<br />hello world out there
<br />hello world out there
</body>
</html>
--------------------------------------EOF--------------------------------------
The problem is the floating element #home, which is supposed to be a
link sometime in the future. I'd like it to fade in at the same time
with the toolbar. I'm looking for a "clean" solution, ideally CSS-only.
Thanks.
--
It's not right. It's not even wrong.
 
Reply With Quote
 
 
 
 
sam@none.com
Guest
Posts: n/a
 
      10-02-2005
On Sun, 02 Oct 2005 16:56:20 +0200, YourMind <>
wrote:

>I know this is not the right place to post web development questions,
>but the code is done work only with firefox (1.0.6). Ok, here is it:
>---------------------------------------.---------------------------------------

Got to alt.html.

They can help you there.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
urgent help....need urgent help on say string task.. pooja Software 0 03-03-2009 06:16 AM
Help needed on this 857W config. Repost to be clearer what the problemsare and the help needed sparticle Cisco 3 08-30-2007 07:47 PM
Urgent: help needed : "Problem with double quotes" Ramki Perl 2 02-10-2004 06:11 PM
about recovery agent -urgent help needed mmani MCSE 2 08-21-2003 11:34 PM
urgent help needed ! andy ASP .Net 0 07-12-2003 07:31 AM



Advertisments