Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MooTools 1.3 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 11 additions & 23 deletions Assets/imageMenu.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
/*

*, html {
margin: 0;
padding: 0;
}

*/

/**************************************************************

Image Menu
Expand All @@ -22,50 +13,47 @@
overflow: hidden;
}



.imageMenu ul {
list-style: none;
margin: 0px;
display: block;
height: 200px;
width: 1000px;

}
}

.imageMenu ul li {
float: left;
}

.imageMenu ul li a {
text-indent: -1000px;
background:#FFFFFF none repeat scroll 0%;
background: #FFFFFF none repeat scroll 0%;
border-right: 2px solid #fff;
cursor:pointer;
display:block;
overflow:hidden;
width:98px;
cursor: pointer;
display: block;
overflow: hidden;
width: 90px;
height: 200px;
}

.imageMenu ul li.landscapes a {
background: url(../_img/imageMenu/landscapes.jpg) repeat scroll 0%;
background: url(landscapes.jpg) repeat scroll 0%;
}

.imageMenu ul li.people a {
background: url(../_img/imageMenu/people.jpg) repeat scroll 0%;
background: url(people.jpg) repeat scroll 0%;
}

.imageMenu ul li.nature a {
background: url(../_img/imageMenu/nature.jpg) repeat scroll 0%;
background: url(nature.jpg) repeat scroll 0%;
}

.imageMenu ul li.urban a {
background: url(../_img/imageMenu/urban.jpg) repeat scroll 0%;
background: url(urban.jpg) repeat scroll 0%;
}

.imageMenu ul li.abstract a {
background: url(../_img/imageMenu/abstract.jpg) repeat scroll 0%;
background: url(abstract.jpg) repeat scroll 0%;
width: 310px;
}

Expand Down
44 changes: 44 additions & 0 deletions Demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="nl">
<head>
<title>Pathfusion ImageMenu for MooTools 1.3</title>

<link href="../Assets/imageMenu.css" rel="stylesheet" type="text/css" />

<script src="mootools-core-1.3.js"></script>
<script src="mootools-more-1.3.js"></script>
<script src="../Source/ImageMenu.js"></script>

<script>

window.addEvent('domready', function(){

var myMenu = new ImageMenu($$('.imageMenu a'), {
openWidth: 310,
border: 2,
onClickOpen: function(e, i){
alert(e);
}
});

});

</script>

</head>

<body>
<h1>Pathfusion ImageMenu for MooTools 1.3</h1>

<div class="imageMenu">
<ul>
<li class="landscapes"><a href="http://www.aaronbirchphotography.com">Landscapes</a></li>
<li class="people"><a href="http://www.aaronbirchphotography.com">People</a></li>
<li class="nature"><a href="http://www.aaronbirchphotography.com">Nature</a></li>
<li class="urban"><a href="http://www.aaronbirchphotography.com">Urban</a></li>
<li class="abstract"><a href="http://www.aaronbirchphotography.com">Abstract</a></li>
</ul>
</div>

</body>
</html>
Loading