472,336 Members | 1,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,336 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 1242
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...
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...
54
by: tshad | last post by:
I have a function: function SalaryDisplay(me) { var salaryMinLabel = document.getElementById("SalaryMin"); salaryMinLabel.value = 200;...
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...
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...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.