Below is my code.i want the first division should be load when window is loading. -
<HTML>
-
<HEAD>
-
<script>
-
function tabFunc(getthis)
-
{
-
var getIn=getthis.innerHTML;
-
var getId=getIn+'_content';
-
var divId=document.getElementById('content');
-
var divlen=divId.getElementsByTagName('div');
-
-
for (var i=0;i<divlen.length;i++ )
-
{
-
if(divlen[i].id != getId)
-
{
-
divlen[i].style.display='none';
-
}
-
else
-
{
-
divlen[i].style.display='block';
-
}
-
}
-
-
var par=getthis.parentNode;
-
var mm=par.getElementsByTagName('td');
-
for(var i=0;i<mm.length-1;i++)
-
{
-
if(mm[i]==getthis)
-
{
-
mm[i].className='click';
-
-
}
-
else
-
{
-
-
mm[i].className='Normal';
-
}
-
}
-
}
-
</script>
-
<style>
-
.Normal {background-color:#FF0000;cursor:pointer;}
-
.click {background-color:#FFFFFF;cursor:pointer;}
-
td{
-
border:none;
-
font-family:verdana,arial;
-
font-size:12px;
-
}
-
table{
-
border:none;
-
}
-
</style>
-
</HEAD>
-
-
<BODY>
-
<table border="0" background="back.gif" height="100%" width="100%">
-
<tr>
-
<td>
-
<table cellspacing="0" cellpadding="0" width="100%" border="2" height="100%">
-
<tr height="23px">
-
<td class="Normal" onclick="tabFunc(this);" style="width:50px; background-position:right; padding-left:20px;padding-right:20px;border-left:1px solid #000000;">Home</td>
-
<td class="Normal" onclick="tabFunc(this);" style="width:50px;background-position:right; padding-left:20px;padding-right:20px;border-left:1px solid #000000;" >Operation</td>
-
<td class="Normal" onclick="tabFunc(this);" style="width:50px;background-position:right; padding-left:20px;padding-right:20px;border-left:1px solid #000000;" >Administration</td>
-
<td width="100%" style="border-bottom:1px solid #000000;"> </td>
-
</tr>
-
<tr>
-
<td colspan="4" id="content" style="height:100%;width:100%;border-top:0px;border-left:1px solid #000000;border-bottom:1px solid #000000;border-right:1px solid #000000;">
-
<div id="Home_content" style="display:none;height:100%;width:100%;border:0px solid #000000;">Home_contentet</div>
-
<div id="Operation_content" style="display:none;height:100%;width:100%;border:0px solid #000000;">Operation_contentet</div>
-
<div id="Administration_content" style="display:none;height:100%;width:100%;border:0px solid #000000;">Administration_content</div>
-
</td>
-
</tr>
-
</table>
-
</td>
-
</tr>
-
</table>
-
</BODY>
-
</HTML>
-
in the above code i want the Home_Content should be default loaded when i running the script.please help me.
1 1746
Try giving your Home DIV an id, then use your tab function to call the id instead of (this). It might work, it might not. Just giving an idea that sounds right.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Rob Tweed |
last post by:
I have a customer who is having problems when their Windows
2000/IIS/PHP-based system begins to experience a level of loading that
isn't, in my view, unreasonably high. I'm wondering what others
think, specifically:
- are these volumes, for this kind of configuration, at or beyond the
levels at which PHP should be able to cope? I hope not !
- what might be done to alleviate these problems? One of our
suspicions is that Windows...
|
by: soup_or_power |
last post by:
The pop up window has several checkboxes. I'm unable to access the
checkboxes using the handle from window.open. Any way to do this?
var display;
function showSugg(but_id, sugg1, sugg2, sugg3, sugg4, sugg5) {
display=window.open('','_blank','menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=150,width=190')
|
by: Satish |
last post by:
Dear all,
Iam unable to laod images at runtime from the file folder / database
through C# code with asp. net and Crystal reports
All the solutions given are through RDC COM Component..
but no information is available for CR for VS.net this is with File
server based image loading using OLE object.
Thanks in advance.
-satish
|
by: souporpower |
last post by:
Hello All
I am trying to activate a link using Jquery. Here is my code;
<html>
<head>
<script type="text/javascript" src="../../resources/js/
jquery-1.2.6.js"</script>
<script language="javascript" type="text/javascript">
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |