Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2011, 05:46 AM
Sasoragon's Avatar
Sasoragon Sasoragon is offline
Beginniner Coder :D
 
Join Date: Jan 2011
Location: In the Myadopts Support Forums
Posts: 29
Gender: Female
Credits: 6,069
Sasoragon is on a distinguished road
Default Editing the HTML side of the CSS?

I'm trying to make a drop-down menu bar on my site, but I'm not entirely sure how to do it. According to google, it requires editing the HTML side of a page. Does anyone know how to do this, or if there's a better way?
__________________
These smilies... are epic sauce.
Favorite smiley:
= :OHSH*TALION:

Now working on:
Daycare Mod. 40% Complete.

Grand Opening: :D
Reply With Quote
  #2  
Old 02-14-2011, 10:36 AM
ChibiMaestro ChibiMaestro is offline
bruh
 
Join Date: Nov 2010
Location: United Kingdom
Posts: 300
Gender: Female
Credits: 35,652
ChibiMaestro is on a distinguished road
Default

Well I found this on Google sometime ago (and what I do when I find an epic code is save it xD).

Most sites say you have to use Javascript but this one only uses CSS and HTML xD

So....
Code:
<html> 
<head> 
<title>CSS based drop-down menu</title>	
	<style type="text/css"> 
ul {
	font-family: Arial, Verdana;
	font-size: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	}
ul li {
	display: block;
	position: relative;
	float: left;
	}
li ul {
	display: none;
	}
ul li a {
	display: block;
	text-decoration: none;
	color: #ffffff;
	border-top: 1px solid #ffffff;
	padding: 5px 15px 5px 15px;
	background: #2C5463;
	margin-left: 1px;
	white-space: nowrap;
	}
ul li a:hover {
	background: #617F8A;
	}
li:hover ul { 
	display: block; 
	position: absolute;
	}
li:hover li { 
	float: none;
	font-size: 11px;
	}
li:hover a {
	background: #617F8A;
	}
li:hover li a:hover {
	background: #95A9B1;
	}
	</style>		
</head> 
<body> 
	<ul id="menu"> 
			<li><a href="">Home</a></li> 
			<li><a href="">About</a> 
			<ul> 
			<li><a href="">The Team</a></li> 
			<li><a href="">History</a></li> 
			<li><a href="">Vision</a></li> 
			</ul> 
			</li> 
			<li><a href="">Products</a>
			<ul> 
		        <li><a href="">Cozy Couch</a></li> 
		        <li><a href="">Great Table</a></li> 
		        <li><a href="">Small Chair</a></li> 
		        <li><a href="">Shiny Shelf</a></li> 
		        <li><a href="">Invisible Nothing</a></li> 
			</ul> 
			</li> 
			<li><a href="">Contact</a> 
			<ul> 
		        <li><a href="">Online</a></li> 
		        <li><a href="">Right Here</a></li> 
		        <li><a href="">Somewhere Else</a></li> 
			</ul> 
			</li> 
			</ul>
</body> 
</html>
And yes, you will need to be able to edit the HTML because let's compare the different HTML menus:
The drop down menu:
Code:
	<ul id="menu"> 
			<li><a href="">Home</a></li> 
			<li><a href="">About</a> 
			<ul> 
			<li><a href="">The Team</a></li> 
			<li><a href="">History</a></li> 
			<li><a href="">Vision</a></li> 
			</ul> 
			</li> 
			<li><a href="">Products</a>
			<ul> 
		        <li><a href="">Cozy Couch</a></li> 
		        <li><a href="">Great Table</a></li> 
		        <li><a href="">Small Chair</a></li> 
		        <li><a href="">Shiny Shelf</a></li> 
		        <li><a href="">Invisible Nothing</a></li> 
			</ul> 
			</li> 
			<li><a href="">Contact</a> 
			<ul> 
		        <li><a href="">Online</a></li> 
		        <li><a href="">Right Here</a></li> 
		        <li><a href="">Somewhere Else</a></li> 
			</ul> 
			</li> 
			</ul>
The MA menu:
Code:
<ul>
	<li><a href='index.php'>Home</a></li>
	<li><a href='adopt.php'>Adopt</a></li>
	<li><a href='myadopts.php'>My Adopts</a></li>
	<li><a href='account.php'>My Account</a></li>
	<li><a href='messages.php'>Message Center</a></li>
	<li><a href='stats.php'>Top 10</a></li>
	<li><a href='shoutbox.php'>Shoutbox</a></li>
</ul>
^See that you only have 1 pair of <ul> tags?

So you can't use it for PokeHikke if that's what you were thinking of... but you can use it for a Mys site xD
__________________
Regards,
...the CSS lovin' cookie monster...

~C.Maestro
___________________
I'd like to think I'm good at CSS&HTML, so if you need help with designing templates and stuff, feel free to 'come at me bro' with the questions. Haha, also if you need help with installing the Mysidia Adoptables Script, please check out my guide here!
Reply With Quote
  #3  
Old 02-14-2011, 04:13 PM
PTGigi's Avatar
PTGigi PTGigi is offline
Crazily Friendly~HoF
 
Join Date: Jul 2009
Location: Somewhere >.>
Posts: 370
Gender: Female
Credits: 25,157
PTGigi
Default

I may have to make use of this
__________________


"I see now that the circumstances of one's birth are irrelevant; it is what you do with the gift of life that determines who you are."~Mewtwo
My Adoptables|Nuzlocke Webcomic
Reply With Quote
  #4  
Old 02-14-2011, 04:40 PM
Sasoragon's Avatar
Sasoragon Sasoragon is offline
Beginniner Coder :D
 
Join Date: Jan 2011
Location: In the Myadopts Support Forums
Posts: 29
Gender: Female
Credits: 6,069
Sasoragon is on a distinguished road
Default

Lol, yeah, I know. XD I got the idea off of that thread in MA.

I'm trying to edit the CSS of a Mys site, and I thought a drop-down menu would be pretty awesome. The thing is, I don't know where to put in the HTML side of it.
__________________
These smilies... are epic sauce.
Favorite smiley:
= :OHSH*TALION:

Now working on:
Daycare Mod. 40% Complete.

Grand Opening: :D
Reply With Quote
  #5  
Old 02-15-2011, 09:39 AM
Tequila's Avatar
Tequila Tequila is offline
The Grim One
 
Join Date: Jan 2009
Location: Souther Tier, New York State
Posts: 1,356
Gender: Female
Credits: 96,110
Tequila is on a distinguished road
Default

You'll need to be in 'inc/functions.php' to edit anything that shows up as menu links in the site, especially if you use the :LINKSBAR: or :SIDEFEED: calls.
__________________
Artist. Designer. Gamer. Mother.
[portfolio] [tarot] [Rune Hollow] [freebies]
Reply With Quote
  #6  
Old 02-15-2011, 05:24 PM
Sasoragon's Avatar
Sasoragon Sasoragon is offline
Beginniner Coder :D
 
Join Date: Jan 2011
Location: In the Myadopts Support Forums
Posts: 29
Gender: Female
Credits: 6,069
Sasoragon is on a distinguished road
Default

Oh, okay. I was looking in the functions.php earlier today, but I didn't manage to get anything to work. I guess I have to stare at the Mys Script a little bit more to try and understand it before I can start making things like that. XD

Thanks~
__________________
These smilies... are epic sauce.
Favorite smiley:
= :OHSH*TALION:

Now working on:
Daycare Mod. 40% Complete.

Grand Opening: :D
Reply With Quote
  #7  
Old 02-17-2011, 09:40 AM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,550
BMR777 is on a distinguished road
Default

Check your /templates folder, as that's where the actual HTML files for the script are stored. :)
Reply With Quote
Reply

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Side Bar v1.3.3 Nieth Questions and Supports 10 06-04-2013 06:11 PM
How to edit Side Bar? Abronsyth Questions and Supports 6 12-11-2012 04:09 PM
Editing Side Bar Links GuardiansWish Questions and Supports 4 10-22-2012 08:18 AM
Side Shoutbox Mod rickasawr Mys v1.2.x Mods 6 09-12-2011 05:40 PM
Display images side by side? SilverDragonTears Questions and Supports 5 06-06-2011 02:55 AM


All times are GMT -5. The time now is 10:20 AM.

Currently Active Users: 355 (0 members and 355 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636