CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.classifieds_starter_kit Tags:
Item Type: NewsGroup Date Entered: 6/23/2007 2:42:04 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 29 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
wsterntime
Asp.Net User
Anyway to only Display Main Catagory on front page?6/23/2007 2:42:04 AM

0/0

I was wondering if there is any way to display only the main catagories on the front page and then have the subcatagories show up after clicking on the main page. My front page looks too jumbled showing all the sub catagories. Thanks for any help. Big Smile

Nitinkcv
Asp.Net User
Re: Anyway to only Display Main Catagory on front page?6/23/2007 11:09:03 AM

0/0

 Hi,

 Im not sure if i get you properly. But have a look at this:

 code for aspx 

 <div runat="server" id="MainCategory1" onclick="show(this.id)" >Click here to show more details on this </div> 

 <div runat="server" id="MainCategory2" onclick="show(this.id)" /> Click here to show more details on this </div>

 <div runat="server" id="MainCategory3" onclick="show(this.id)" />Click here to show more details on this </div> 

 <div runat="server" id="MainCategory4" onclick="show(this.id)" />Click here to show more details on this </div> 

 <div runat="server" id="MainCategory5" onclick="show(this.id)" />Click here to show more details on this </div> 

<div runat="server id="MainCategory1_subcategory" style="visibility: hidden;">write your stuff </div>

<div runat="server id="MainCategory2_subcategory" style="visibility: hidden;">write your stuff </div>

<div runat="server id="MainCategory3_subcategory" style="visibility: hidden;">write your stuff </div>

<div runat="server id="MainCategory4_subcategory" style="visibility: hidden;">write your stuff </div>

<div runat="server id="MainCategory5_subcategory" style="visibility: hidden;">write your stuff </div>

 JavaScript

 function show(id)
{
 
  var idname= id;
  if(idname=="MainCategory1")
  document.getElementById('MainCategory1_subcategory').style.visibility='visible';

 else if(idname=="MainCategory2")
  document.getElementById('MainCategory2_subcategory').style.visibility='visible';

 else if(idname=="MainCategory3")
  document.getElementById('MainCategory3_subcategory').style.visibility='visible';

}

 

This is just an outline. PLease let me know if you have any queries
 

  


Thanks
wsterntime
Asp.Net User
Re: Anyway to only Display Main Catagory on front page?6/23/2007 12:21:38 PM

0/0

 Hi,

Thank you for your response. I am totally new to this and am not sure where I would put this code you have given.

Nitinkcv
Asp.Net User
Re: Anyway to only Display Main Catagory on front page?6/23/2007 12:50:47 PM

0/0

 Hi,

 If you were planning a simple html page please see the followingcode:

 

<html>
<head>
<script type="text/javascript">
function show(id)
{

var idname= id;
if(idname=="MainCategory1")
document.getElementById('MainCategory1_subcategory').style.visibility='visible';

else if(idname=="MainCategory2")
document.getElementById('MainCategory2_subcategory').style.visibility='visible';

else if(idname=="MainCategory3")
document.getElementById('MainCategory3_subcategory').style.visibility='visible';

}

</script>
</head>

<body>
<div id="MainCategory1" onclick="show(this.id)" >Click here to show more details on this </div>

<div id="MainCategory2" onclick="show(this.id)" /> Click here to show more details on this </div>

<div id="MainCategory3" onclick="show(this.id)" />Click here to show more details on this </div>

<div id="MainCategory4" onclick="show(this.id)" />Click here to show more details on this </div>

<div id="MainCategory5" onclick="show(this.id)" />Click here to show more details on this </div>

<div  id="MainCategory1_subcategory" style="visibility: hidden;">write your stuff </div>

<div id="MainCategory2_subcategory" style="visibility: hidden;">write your stuff </div>

<div id="MainCategory3_subcategory" style="visibility: hidden;">write your stuff </div>

<div id="MainCategory4_subcategory" style="visibility: hidden;">write your stuff </div>

<div id="MainCategory5_subcategory" style="visibility: hidden;">write your stuff </div>
</body>

</html>

 Please let me know.


Thanks
Imageco
Asp.Net User
Re: Anyway to only Display Main Catagory on front page?9/3/2007 4:45:26 PM

0/0

Hi,

I was looking for a way to do something very close to this.  The main difference is, as you select one option, I would like the previous options to be hidden again.  In other words, so only one option shows up at a time.  Is there a way to alter this code to do that?  Thanks in advance!

5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:

Web:
Anyway to only Display Main Catagory on front page? - ASP.NET Forums I was wondering if there is any way to display only the main catagories on the front page and then have the subcatagories show up after ...
Entries in category only not on Main page - Movable Type Community ... Is there any way to have an entry only show up in the desired category page and not in the main blog page? For example you have an entry ...
Display image only on front page | drupal.org I've a bunch of news items on my frontpage. I want to use taxonomy image to visually aid the visitor to see to which category a news item ...
Hold The Front-page! » Textpattern Coding » The Bombsite In a new TXP install the front-page is set up to display your blog. ... will need to display not only your front-page contents, but also any category lists ...
Joomla! Extensions Directory - Front Page Rotator There are two versions released of the Front Page Rotator, check the feature comparison in the ... Option to display only for a certain section / category ...
Display a selected number of posts from one category in the ... Oct 29, 2007 ... Do you know of anyway I can not have posts show up on the front page ... We would like to automatically display on a category page only the ...
WordPress › Support » Query Post Within Category and Offset On the front page you display the latest post from several different categories, ... that only the appropriate category query is offset (by 1) when the Main ...
[SOLVED] Showing module and other items on front page only Is there any way or hack to display module only on front page ( not homepage)? .... Just change the $cid == 0 to the appropriate category ID# Example: ...
Talk:Main Page/Archive2 - Wikinews, the free news source The problem comes down to what do we wish to display on the main page, ... " Breaking news" or latest news is a category, and should be only the very latest, ...
Static frontpage - combined with dynamic content - in WordPress ... Let’s say we have a category called “News” and we want to display only ... I should say, how do I associate main.php to be my Front Page (using WP 2.2.3) ...

Videos:
Silicon Valley WebGuild: Vertical Search Trends Google Tech Talks August 23, 2006 Silicon Valley Web Guild http://www.webguild.org/ Presenters: Michael Yang, Founder, President and CEO, Become.co...
Long Beach City Council Meeting Long Beach City Council Meeting
Long Beach City Council Meeting Long Beach City Council Meeting




Search This Site:










c# help

cannot reference web service methods

asp.net web app admin unable to find sqlexpress

glitch with css files

to increase performance of gridview

cant get skin to load

nested controls

simple screen scraper

column types in database

how to make this kind of layour? www.f135.com?

secure and unsecure content

i have a grid view calling out records. is it possible to drop an advert in after first four and then produce the rest of records

images not appearing, new dnn install

forms authentication and dual login page

profile.username is being set differently then currently logged in user

[detailsview] after javascriptpostback automaticly redirection

how to change default codebehind from vb to c# in visual web dev 2005

question to experts

create disk

how to find ip address

posting and retrieving an encrypted cookie

upgrading from beta 3.0.9 to 3.0.10

web.config admembership provider parsing problems

postal code formatting

converting a web site project to a web application project ?

mac os 9 - best browser?

dynamic layer navigation

.text up and running but virtual directory web not

creating reports in asp.net2.0

publishing a project

 
All Times Are GMT