473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Problems with JScript in ASP

I have a div called 'myscroll' in one template *.dwt I use in other pages, with this sintax:

<div id="myscroll"><table cellpadding=0 cellspacing=0 border=0>
<tr>
<td><div id="up" style="position:relative; z-index:2; cursor:pointer;"><img src="/js/images/FlechaArriba.jpg" width="10" height="10" /></div></td></tr>
<tr><td height=250 id="altura" valign=top><div id="drag" style="position:relative; z-index:4; cursor:pointer;"><img src="/js/images/track.gif" width="10" height="10" /></div>
<div id="track" width=1 height=1 style="position:absolute; z-index:3;"></div></td></tr>
<tr><td><div id="down" style="position:relative; z-index:5; cursor:pointer;"><img src="/js/images/FlechaAbajo.jpg" width="10" height="10" /></div></td>
</tr>
</table></div>

In other pages who uses this template, i create a function like this in order to hide this div

function scrollabn() { scroll=document.getElementByName('myscroll');
scroll.style.visible=false;
scroll.style.display="none";
}

When i load this page, the div is visible.

Can anyone help me?

thanks
Oct 20 '06 #1
1 1277
scripto
143 100+
on the page in the BODY section try this:

<BODY onLoad="Scrollabn();">

this will run your function every time the page is loaded
Oct 20 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Max Metral | last post by:
So many details, so little knowledge of what's important. We have a site that we are subjecting to load tests. It makes heavy use of ADO, a VB COM object, some scriptlets, and some HTTP services....
5
by: Justice | last post by:
Currently I'm doing some experimenting with the XMLHTTP object in Javascript. Now, the XMLHttp object is asynchronous (at least in this case), and the following code causes a significant memory...
54
by: tshad | last post by:
I have a function: function SalaryDisplay(me) { var salaryMinLabel = document.getElementById("SalaryMin"); salaryMinLabel.value = 200; alert("after setting salaryMinLabel = " +...
3
by: richard | last post by:
OK, Im working with a DataList in .Net 2.0, the code shows the list when the query has executed. I have the page feature in its own div and display:none so its not visible until the list shows....
3
by: rajarya | last post by:
Hi, I m designing a HTML page(index.html),here i have 2 frames,by defult both frames have index1.html and index2.html as their source . in first frame(index.html) ,i have some redio buttons,and a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.