Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 05-15-2007, 07:49 AM   #21 (permalink)
Member
 
Join Date: 10-12-06
Location: Belgium
Posts: 41
iTrader: 0 / 0%
Latest Blog:
None

City Aggregation is liked by many
Send a message via MSN to City Aggregation
http://spots.tibiacity.org but the box is only visible for registered users. Looks like attached.
Attached Thumbnails
Dropdown area-naamloos2.png  
City Aggregation is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-15-2007, 03:12 PM   #22 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,237
iTrader: 0 / 0%
Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
Thumbs up Ready to go...

I registered on your site to have the appropriate access to page because I wanted to see how it looks underneath. And I've made a few changes which you can see below.

Now the Table is shown on mouse-over and hidden on mouse-out;

The Code:

Code:
<head> <style type="text/css" media="screen"> BODY { font-family: verdana, tahoma, arial, sans-serif; font-size: 10pt; margin: 0px; margin-left: 3px; margin-right: 3px; padding: 0px; } P { padding-top: 10px; margin: 0px; } table.navbar { font-size: 8pt; margin: 0px; padding: 0px; border: 0px; font-weight: bold; } table.menu { font-size: 8pt; margin: 0px; padding: 0px; font-weight: bold; } td.menuNormal { padding: 0px; color: black; font-weight: bold; vertical-align: top; background-color: white; } td.menuHover { padding: 0px; color: black; font-weight: bold; vertical-align: top; } div.menuNormal { display: none; position: static; } div.menuHover { border: 1px solid lightblue; background-color: white; display: inline; position: absolute; } </style> <script type="text/javascript"> function expand(s) { var td = s; var d = td.getElementsByTagName("div").item(0); td.className = "menuHover"; d.className = "menuHover"; } function collapse(s) { var td = s; var d = td.getElementsByTagName("div").item(0); td.className = "menuNormal"; d.className = "menuNormal"; } </script> </head> <body> <table class="navbar"> <tr> <td class="menuNormal" width="160" onmouseover="expand(this);" onmouseout="collapse(this);"> <p> Welcome, <b>costintrifan</b>&nbsp;<img id="Image1" src="Tibia%20spot%20of_files/down.png" /></p> <div class="menuNormal" width="155"> <table class="menu" id="Table1" style="border-right: #000000 1px solid; border-top: #000000 1px solid; background-image: url(images/n2.gif); border-left: #000000 1px solid; border-bottom: #000000 1px solid; background-repeat: repeat-x; background-color: white; width: auto;" cellspacing="10" cellpadding="10"> <tbody> <tr> <td valign="top" colspan="2"> <a href="http://www.tibiacity.org/">Tibiacity</a> - <a href="http://www.tibiacity.org/forum"> Forum</a> - <a href="http://www.tibiacity.org/blog">Blog</a><br> <br> <center> <img class="border" title="My avatar" src="Tibia%20spot%20of_files/image.gif"></center> </td> <td valign="top"> <b>Spots menu</b><br> <br> <a href="#">Homepage</a><br> <a href="#">Manual</a><br> <br> <a href="#">Your spot</a><br> <a href="#">Your blog</a><br> <a href="#">Your images</a><br> <a href="#">Your movies</a><br> </td> </tr> </tbody> </table> </div> </td> </tr> </table> </body>

All you have to do now is to adapt it to your page, change the css classes...
Just copy and paste (simple as that)



[btw, i like your site]
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-17-2007, 05:47 AM   #23 (permalink)
Member
 
Join Date: 10-12-06
Location: Belgium
Posts: 41
iTrader: 0 / 0%
Latest Blog:
None

City Aggregation is liked by many
Send a message via MSN to City Aggregation
That wworks but it isn't really what I want, it's kinda strange.
City Aggregation is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-17-2007, 05:52 AM   #24 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,237
iTrader: 0 / 0%
Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
Question

why?

I like the ideea...
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-20-2007, 06:00 AM   #25 (permalink)
Member
 
Join Date: 10-12-06
Location: Belgium
Posts: 41
iTrader: 0 / 0%
Latest Blog:
None

City Aggregation is liked by many
Send a message via MSN to City Aggregation
Don't you find it a little strange that it opens onmouseover? Could you make it open onclick and close onmouseover?
City Aggregation is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-20-2007, 06:05 AM   #26 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,237
iTrader: 0 / 0%
Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
Quote:
Could you make it open onclick and close onmouseover?
you want to say open on click and close on mouse out ?

I'll see what I can do.

Still, I rather like it to be acting as a menu. It's more accessible, that is I don't have to click it to open it...
Anyway, as I said, I'll see what I can do.
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-20-2007, 06:51 AM   #27 (permalink)
Member
 
Join Date: 10-12-06
Location: Belgium
Posts: 41
iTrader: 0 / 0%
Latest Blog:
None

City Aggregation is liked by many
Send a message via MSN to City Aggregation
It's more logic if it opens on click :p.
City Aggregation is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-20-2007, 05:21 PM   #28 (permalink)
Meeow!
 
Costin Trifan's Avatar
 
Join Date: 04-13-07
Location: Romania
Posts: 3,237
iTrader: 0 / 0%
Costin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest orderCostin Trifan is a web professional of the highest order
Thumbs up job done

HTML Code:
<head> <style type="text/css" media="screen"> BODY { font-family: verdana, tahoma, arial, sans-serif; font-size: 10pt; margin: 0px; margin-left: 3px; margin-right: 3px; padding: 0px; } P { padding-top: 10px; margin: 0px; } table.navbar { font-size: 8pt; margin: 0px; padding: 0px; border: 0px; font-weight: bold; } table.menu { font-size: 8pt; margin: 0px; padding: 0px; font-weight: bold; } td.menuNormal { padding: 0px; color: black; font-weight: bold; vertical-align: top; background-color: white; } td.menuHover { padding: 0px; color: black; font-weight: bold; vertical-align: top; } div.menuNormal { display: none; position: static; } div.menuHover { border: 1px solid lightblue; background-color: white; display: inline; position: absolute; } </style> <script type="text/javascript"> function showIt(cell_ID) { var td = document.getElementById(cell_ID); var d = td.getElementsByTagName("div").item(0); td.className = "menuHover"; d.className = "menuHover"; } function hideIt(cell_ID) { var td = document.getElementById(cell_ID); var d = td.getElementsByTagName("div").item(0); td.className = "menuNormal"; d.className = "menuNormal"; } </script> </head> <body> <table class="navbar"> <tr> <td id="CellManager" class="menuNormal" width="160"> <p> Welcome, <b>costintrifan</b>&nbsp;<img id="Image1" onclick="showIt('CellManager');" src="Tibia%20spot%20of_files/down.png" /></p> <div id="Panel1" class="menuNormal" onmouseout="hideIt('CellManager');" onmouseover="showIt('CellManager');" width="155"> <table class="menu" id="Table1" style="border-right: #000000 1px solid; border-top: #000000 1px solid; background-image: url(images/n2.gif); border-left: #000000 1px solid; border-bottom: #000000 1px solid; background-repeat: repeat-x; background-color: white; width: auto;" cellspacing="10" cellpadding="10"> <tbody> <tr> <td valign="top" colspan="2"> <a href="http://www.tibiacity.org/">Tibiacity</a> - <a href="http://www.tibiacity.org/forum"> Forum</a> - <a href="http://www.tibiacity.org/blog">Blog</a><br> <br> <center> <img class="border" title="My avatar" src="Tibia%20spot%20of_files/image.gif"></center> </td> <td valign="top"> <b>Spots menu</b><br> <br> <a href="#">Homepage</a><br> <a href="#">Manual</a><br> <br> <a href="#">Your spot</a><br> <a href="#">Your blog</a><br> <a href="#">Your images</a><br> <a href="#">Your movies</a><br> </td> </tr> </tbody> </table> </div> </td> </tr> </table> </body>
__________________
...to be continued
Costin Trifan is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-24-2007, 12:13 AM   #29 (permalink)
Member
 
Join Date: 10-12-06
Location: Belgium
Posts: 41
iTrader: 0 / 0%
Latest Blog:
None

City Aggregation is liked by many
Send a message via MSN to City Aggregation
Thanks for the code and sorry for the late reply but Ididn't had much time the latest days due to exams. I'm going to test this tomorow evening.
City Aggregation is offline  
Add Post to del.icio.us
Reply With Quote
Old 05-24-2007, 10:55 PM   #30 (permalink)
Inactive
 
Join Date: 05-06-07
Posts: 84
iTrader: 0 / 0%
Latest Blog:
None

alainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the roughalainkun is a jewel in the rough
Send a message via MSN to alainkun
only change onmouseover to onclick
alainkun is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sons of suckerfish dropdown Jesse Vlasveld Coding Forum 4 04-05-2007 03:26 PM
Dropdown menu issues Foxtrck Coding Forum 0 04-01-2007 06:35 AM
CSS Dropdown Menu, need some help... :( Klaas Koopman Coding Forum 9 11-30-2006 03:50 PM


Sponsor Links
Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 05:19 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.