- Screen name: energetic.pixels
- About Me: Newbie to jQuery. I have lots and lots of experience with Flash/Flex, 3D (Blender), xhtml/xml, PHP/MySQL. Graduate of the US Navy's School of Hard Knocks with a standing of Chief Petty Officer.
- Email ID: energeticpixels@gmail.com
energetic.pixels's Profile
28 Posts
32 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- 08-May-2012 10:29 PM
- Forum: Using jQuery UI
Ok, I have a flowplayer (version 3.2.9) that works correctly between anchor links and the player div when a dialog is not involved. When I stick a dialog and attach the opening of it to a click of the anchor link from the Flowplayer, the correct video plays. But the 'rub' comes when the dialog is closed or hidden and then I try and a video again, I get the video that is hard-coded in the html page to play not the one from the click (that just worked).Can anyone point out where I am missing something or more likely I have placed something in the wrong sequence of events??????My online sample is here. Select "Mobile Apps" from the menu and then select any of the big icons in the content to play a video. Wait for it to start playing, then close the dialog. When you click on another big icon, the player should NOT be playing the AmmoHelp video, but something that has to do with the subject you clicked on.Here is my jquery:- $(document).ready(function() {
- $f("mobileDemos", "script/flowplayer-3.2.9.swf", {
- clip: {
- // use baseUrl so we can play with shorter file names
- //baseUrl: 'localhost/crseCatalog/',
- baseUrl: 'http://www.serco-hrc.com/crseCatalog/',
- // use first frame of the clip as a splash screen
- autoPlay: false,
- autoBuffering: true
- }
- });
- $('.mApplication .icon').on('click', 'a', function(event) {
- event.stopPropagation();
- event.preventDefault();
- $('#playContainer').dialog('open');
- $f().play(this.getAttribute("href", 2));
- });
- $('#playContainer').dialog({
- autoOpen: false,
- modal: false,
- close: function(event, ui) {
- $f("*").each(function() {
- this.stop();
- });
- $(this).dialog("option", "hide", "slide");
- }
- });
- });
Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- 23-Apr-2012 03:49 PM
- Forum: Using jQuery
Ok. Someone set me straight.
I have a index.html page at (serco-hrc.com/crseCatalog/index.html) that contains my site header, footer and horizontal/vertical navigation stuff. Upon client side rendering, jQuery (script link in the html to a file called script/operations.js) goes out and gets indexContent.html and puts it in a div (#content). On this 'imported' page or html fragment, I have a simple RSS reader.
Why do I need to put the jQuery 'call' inside the html fragment file?? Why can I not do the ALL site scripting in operations.js file, which is my 'master' jQuery call file.
I know, for anything that is a user can click in the imported pages, I can use something like ".on" --- $('#fullDescript').on('click', '#registerLink', function() {
- $('#registerLink').attr('target', '_blank');
- });
Visual rep: Click on the Course Catalog. Click on Ammo-04. If there was a stated class schedule, the fragment would have a div named #offerings. But since it does not, I need to hide the #registerLink button at the top of the page automatically. When I insert the following script at the bottom of the imported html fragment, the button hides like one would expect.- if ($('#offerings').length) {
- alert ('I have a class schedule table');
- /*$('#registerLink').hide();*/
- };
I have other issues stemming from this unhooked/unbinded type of problem. So if I solve this, I can apply the same idea or thinking to my other problems.
Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- 03-Apr-2012 04:06 PM
- Forum: Using jQuery
Ok, fix 2 things uncover 2 more that don't work.
I have a row of big buttons (with images) on the main page. Clicking on any of these buttons, works correctly. Then click home button (from either horizontal or vertical menus). After clicking on the home button, the big buttons no longer respond to the mouse click. Why is jquery disconnecting from these big buttons on supplemental clicks??
online sample of whole site is here.
Big Button code:- <div id='bigButtons'>
- <div class='image' id='classroom'>
- <a href='#'><img src='media/Classroom.png' title='Classroom Training' alt='Classroom Training' /></a>
- <p class='caption'>Classroom Training</p>
- </div>
- <div class='image' id='dlTrng'>
- <a href='#'><img src='media/Virtual.png' title='Online Training' alt='Online Training' /></a>
- <p class='caption'>Online Training</p>
- </div>
- <div class='image' id='crseCat'>
- <a href='#'><img src='media/Catalog.png' title='Course Catalog' alt='Course Catalog' /></a>
- <p class='caption'>Course Catalog</p>
- </div>
- .......
- </div>
- $('#bigButtons div').on("click", function(event) {
- var itemVar = $(this).attr('id');
- event.preventDefault();
- /*$('#content').empty();*/
- switch(itemVar) {
- /*case 'classroom' : alert('you clicked' + $(this).attr('id')); break;*/
- case 'classroom' : $('#content').load('classroom.html'); break;
- case 'dlTrng' : $('#content').load('online.html'); break;
- case 'crseCat' : $('#content').load('crseCat.html'); break;
- case 'internTrng' : $('#content').load('onboard.html'); break;
- case 'navyTrng' : $('#content').load('navyTraining.html'); break;
- case 'siteFAQ' : $('#content').load('siteFAQ.html'); break;
- };
- });
Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- 02-Apr-2012 04:26 PM
- Forum: Using jQuery
I have a vertical menu (100% css) where the click events are driven by jquery. On the items that have no submenus, the menu works good. But on items that have submenus and when the user clicks on one of the submenu items, the content loads into the specified div but then the old content comes back into view.
Here is the code:- $('#vmenu li').on("click", function(event) {
- var itemVar = $(this).attr('class');
- event.preventDefault();
- switch(itemVar) {
- case 'mainHome' : $('#content').empty().load('indexContent.html'); break;
- case 'classroom' : $('#content').empty().load('classroom.html'); break;
- case 'dlTrng' : $('#content').empty().load('online.html'); break;
- case 'mobileApp' : $('#content').empty().load('mobileApp.html'); break;
- case 'crseCat' : $('#content').empty().load('crseCat.html'); break;
- case 'internTrng' : $('#content').empty().load('onboard.html'); break;
- case 'dacOrg' : $('#content').empty().load('DACorg.html'); break;
- case 'baseAct' : $('#content').empty().load('BASEactivity.html'); break;
- ....
- };
- });
For example, a user uses the left navigation menu to nav: "Intern On-boarding -> Program Requirements -> Who Joins?" firebug shows that the file "onboard.html" is being pulled in and put in the content div. But according to my operations.js, "whoJoins.html" should be pulled in and displayed in the content div. "onboard.html" is the correct file if someone would be clicking on the Intern Onboarding menu item and not any submenu item.
Any insight would be helpful. I am using jQuery 1.7.1, xhtml1.0 (strict) and targeting IE8 and IE9. But I am trying to keep it so that it works in Chrome and FF11.
Here is the testing location to see what it is doing.
Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- 20-Mar-2012 07:45 PM
- Forum: Using jQuery
I thought I had this problem licked. My script only runs when the DL class has more than 0 objects. Then when a dt is clicked, it shows the sibling DD. But I can not get it to reverse its action. Somewhere my script is confused. Can someone point out my newbie mistake?? It has to be something really simple that I am overlooking. Page where I am using it is at http://www.serco-hrc.com/crseCatalog/AmmoManPoS.html.- if ($('.accordion').length > 0) {
$('.accordion dd').hide();
$('.accordion dt').click(function () {
var sel = $(this);
sel.addClass("act current");
sel.parent().children('dd').each(function() {
if($(this).is(":visible") && !$(this).prev("dt").hasClass("current")) {
if ($(this).prev("dt").hasClass("act")) {
$(this).prev("dt").removeClass("act");
}
$(this).slideUp(300);
}
});
sel.next().slideToggle(300, function() {
if (!$(this).is(":visibile")) {
$(this).prev("dt").removeClass("act");
}
sel.removeClass("current");
});
return false;
});
};
It is not the job you get handed, but what you have done with it in the end that people remember.- Ok. I have been searching for a couple of days for previous development of a script that will compare two xml files against each other. But have come up short handed. I take it that full file comparison is not done normally within the web world. I have seen craterfulls of applications for the 'desktop', but none for the web world.The xml files are formatted in such a way as the data that each node contains is in the attributes of that node.
- <node attribute="pickles" attribute2="donuts" />
What I am trying to do is full file (answerKey.xml) compare the node name and each attribute of the node against studentSubmission.xml file compare.I have attached a sample file that could be used as an answerKey. within my web application, a student will be submitting something similar (at least the instructor hopes). I want the web application to do the comparisons in a 'behind the scene' fashion.A failure in any node should output something. This part is easy.Any suggestions or paths to check out would be helpful. I am stuck.TonyIt is not the job you get handed, but what you have done with it in the end that people remember.Attachments- Submittal Data.xml
- Size: 2.64 KB Downloads: 3557
- 30-Nov-2010 01:19 PM
- Forum: Using jQuery Plugins
Is there a way to let prettyPhoto display something to a website user that prettyPhoto is still waiting on the complete file to download??? I have several .swf and .mov files that are over 2Mb big. Wouldn't normally be a problem, but my users could be accessing the website from a very small 'pipe' (ie. less than 56k modem speeds). I would like to give users some indication that website is not froze, only waiting on resource to finish downloading. (jQuery 1.4.4/UI 1.8.6/pp 3.0.1)
I posted this on no-margin-for-errors.com forum (prettyPhoto owner), but I would like to see what a larger audience might have to say or offer.
Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- OK, I finally have a working web application of a static xml (data resource), jqGrid and prettyPhoto and one w3c validated html file.
but I have been asked to make a 'proof of concept' for mobile devices (when no internet connectivity is present). my application works just fine when I use any browser other than IE. When I run my application in IE, I get no data coming into the jqGrid plug-in. Is there something that I am missing when working with IE?? Or am I dealing with a IE only problem???
Tony
online application is at: http://www.serco-hrc.com/testMe/index.html. This works fine whether the browser goes out to the internet to get everything or store it all on the local hard-drive and run it in anything but IE. IE works fine as long as it can access the internet but not from local hard-drive.
It is not the job you get handed, but what you have done with it in the end that people remember.- I am working with a webapp that contains jqGrid and prettyPhoto plugins.
First round with selecting a row from the grid which fills specified divs with information works correctly. Pics and animations play as intended.
But if my user would select another size of munitions (clicking on another menu drop-down) which would create a new jqGrid with new data. This is where I am having problems. In my onSelectRow sequences of jqGrid, I check for the presence of children on a certain div. If children are found, I am trying to kill the old 'data' and reinsert the new data. But my operation is killing my link to the prettyPhoto.
I have tried remove() and then appending new sequence to the div, replaceWith() and selecting all the 'li' from the div, and the replace(). But something is interrupting the prettyPhoto interaction upon a second row selection from jqGrid.
What am I doing wrong?? Willing to learn new tricks.
This is line #998 from my attachment:- if (jQuery('#slideshow').children().length > 0) { // previous build of prettyPhoto sequence has happened.
$('#slideshow').children().remove();
$('<ul class="clearfix"></ul>').append(data.picsequence).appendTo('#slideshow');
} else {
$('<ul class="clearfix tabArea"></ul>').append(data.picsequence).appendTo('#slideshow'); // this would be the first time around -- which always works.
}
jQuery 1.4.4/jQuery-UI 1.8.6
Tony
Sorry to be long winded, but it gets my exact problem across.
It is not the job you get handed, but what you have done with it in the end that people remember.Attachments- ame-ui.js.txt
- Size: 168.6 KB Downloads: 2849
- if (jQuery('#slideshow').children().length > 0) { // previous build of prettyPhoto sequence has happened.
- Ok, I have a jqGrid plug-in that goes out and gets a static xml file from web and then pushes data within certain nodes to specific divs/html elements. I also am running a prettyPhoto plug-in that dynamically develops a slideshow. Within jqGrid onSelectRow option, I have
- $(data.picsequence).wrap("<ul class='clearfix tabArea'></ul>").appendTo('#slideshow');
The column model of my jqGrid is:- {name:"picsequence",index:"picsequence", xmlmap:"itemMedia>itemPhoto>sequence", width:0, hidden: true},
And a sample of the specific xml file node in question would be something like:- <itemMedia>
<itemPhoto>
<sequence>
<![CDATA[<li><a href="weaponLib/stillMedia/images/a085.jpg" rel="prettyPhoto" title="A085 Dummy Round"><img src="weaponLib/stillMedia/thumbnails/a085.png" width="160" height="120" alt="" /></a></li>]]>
</sequence>
</itemPhoto>
</itemMedia>
My script works if I do it the long way and hard code the 'ul' tag into the html. But I was trying to use jquery to tweek my 'li' and give it a 'ul' wrap dynamically and get rid of the hard coded 'ul' element in the html.
Any help would be greatly appreciated. I don't have much more hair to pull out.
And before you ask, I have also tried a wrapAll() function as from examples in the jQuery documentation. I have several nodes in other xml files that have multiple li sequences to develop several pics to site visitor.
Tony
It is not the job you get handed, but what you have done with it in the end that people remember.
Ok, I am lost. Well... confused.I am trying to get a website menu system to initiate jqGrid correctly depending on the presence of IDs.I have the menu item working correctly here (if the grid has previously been built):- $("#threeeightcal").click( function() {
- var muniitonType = $('#searchResults').jqGrid('getGridParam','xmlReader:row');
- if (munitionType = 'bullet') {
- $("#searchResults").jqGrid('setGridParam',{url:"weaponLib/sa-bullet38cal.xml"}).trigger("reloadGrid");
- };
- });
Now I need to modify it so that it tests for the presense of id "gbox_searchResults". gbox will always get built if jqGrid has been previously initiated. But my script is always going to the else statement. What simple thing am I doing wrong?? I have verified that when website first appears and user has control of menu system that the id gbox_searchResults is not even in the DOM. So my return should be a false.Broke code:- $("#threeeightcal").click( function() {
- var gridBuilt = $('#gbox_searchResults');
- var muniitonType = $('#searchResults').jqGrid('getGridParam','xmlReader:row');
- if (!(gridBuilt)) alert("your a dummy");
- // completely re-init jqGrid
- else alert("good to go");
- // reload grid with new static xml file
- });
It is not the job you get handed, but what you have done with it in the end that people remember.- I have been trying to upgrade from 1.8.2 to 1.8.4 for jquery ui. But I have been having problems trying to get the jquery-ui-1.8.4.custom.css that is within the theme folder to validate. I don't know if it is Dreamweaver or something new that I am seeing. UI 1.8.2 never had this problem. I have my validator set so that it will look for errors against xhtml version 1.0 transitional rules. This should encompass all the old html 4.0 rules. When run, it finds the quote error dealing with line 16:
- .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
It also keys on line 53 with the & in the themeroller section. It suggests that I change all the & to &
any suggestions?
Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- 23-Aug-2010 11:26 AM
- Forum: Using jQuery Plugins
I am running into what seems to be javascript conflicts. I have a web application that uses jqGrid to recover static xml file data and then upon an user's row select, put specific data found in the xml nodes into specified divs or ids within the DOM. When the user clicks on of the thumbnails (generated by 'a' and 'img' tags put into the DOM), prettyPhoto is supposed to go out and get the larger image and display it in a modal dialogue box. But my application is just displaying that larger image in a brand new browser window. I have narrowed down the two offending plugins to the ones named in the subject line. I have already tried moving the placement of both javascript and accompaning CSS files around. I have even tried moving the jQuery line that calls either application around. But I get no good results. How do I find out where in either application am I getting my conflict????
saw somewhere on the net that prettyPhoto sometimes has issues with other plugins where a (".") is used. I modified where I found it and still no change. Help!!
I am testing with IE 7/8 and FF 3.6.8, all on a windows XP machines. jQuery 1.4.2 with UI version 1.8. jqGrid version 3.7.2 and prettyPhoto version 2.5.6
I have put both examples up on a website:
- A prettyPhoto example that works is here. This is an example that has the image data hard coded into the html. But it also has all the jquery plug-ins installed into the head section of html.
- My application is here. This one is broke. I thought I might be having a conflict between my security notice (dialog/modal box) and your plugin. But I have my modal dialog box commented out of my javascript, so that the text appears at the bottom of the screen. To see what I am seeing, do the following:
What am I doing wrong???
– Click on the Small Arms menu item.
– Click on the A085 data row that will appear. This will feed static xml data into a tabbed type of display.
– Click on the Multimedia/Photos tab. This is where my photos and photo groups/galleries will appear. Currently this selected row only contains one photo. I tried to keep it simple until I work the main bugs out.
– If you click on the 'thumbnail', the application (and prettyPhoto plugin) acts wrong and opens the main image into a new IE window.
r/
Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- I have a grid that is being displayed with data that comes from a static xml file. I need to conditionally display a div in response to whether data is present at a particular xml node. Is there a way to do this via jQuery?? I have tried doing it via straight js, but all I end up doing is permanently hiding the div I am messing with.
if data within the xml node is present - display the div. If no data is present in the xml node - hide the div.
But my code below permanently hides the div. Help.- onSelectRow: function() {
var gsr = $('#searchResults').jqGrid('getGridParam', 'selrow');
if (gsr) {
var data = $('#searchResults').jqGrid('getRowData', gsr);
$('#basicMun #dodic').append('DODIC: ' + data.dodic);
$('#basicMun #title').append('Nomenclature: ' + data.nomenclature);
$('#basicMun #purpose').append('Use: ' + data.purpose);
$('#basicMun #description').append('Description: ' + data.description);
if ($(data.olValue.length < 1)) {
$('#basicMun #objLength').hide();}
else {$('#basicMun #objLength').append('Length: ' + data.olValue + ' ' + data.olUnit);
};
$('#basicMun #objWidth').append('Width: ' + data.objWidthvalue + ' ' + data.objWidthunit);
I have tried my if/else statement both ways with less than 1 and then greater than 0 for the conditional. I have verified that there is data within the node and is being reported in firebug.
It is not the job you get handed, but what you have done with it in the end that people remember.- Ok. I really like the product. Especially since my current project has a mandate of working with static xml files and doing all data manipulation on client side.But I have a small issue with both products. As shipped, they have jQuery 1.3.2 installed. But has anyone out there got either product to work with a more recent version of jQuery??When I try and use jQuery 1.4.x, the application on the webpage just acts like any old hyperlink which opens a new browser window vice what looks like a jQuery Dialog box.Any suggestions????Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- 28-Jul-2010 03:34 PM
- Forum: Using jQuery
I am lost. I have tried appending ($('#div').append('selector) but all that does is just append the normal visual rendered text to my #div. What I need is the whole selector to be appended.I tried using .html to copy of the selector over to the DOM, but nothing shows up in that specified div when I look in firebug.I am using jqGrid to separate my nodes from the static xml file that it is working with. Here is the node that I need copied into a div in my DOM:<sequence>
<a class="vlightbox" href="weaponLib/stillMedia/images/a106.jpg" title="A106"><img src="weaponLib
/stillMedia/thumbnails/a106.jpg" alt="A106"/>A106</a>
<a class="vlightbox" href="weaponLib/stillMedia/images/a106_2d_a.jpg" title="A106_2D_A"><img src
="weaponLib/stillMedia/thumbnails/a106_2d_a.jpg" alt="A106_2D_A"/>A106_2D_A</a>
<a class="vlightbox" href="weaponLib/stillMedia/images/a106_2d_b.jpg" title="A106_2D_B"><img src
="weaponLib/stillMedia/thumbnails/a106_2d_b.jpg" alt="A106_2D_B"/>A106_2D_B</a>
<a class="vlightbox" href="weaponLib/stillMedia/images/a106_2d_c.jpg" title="A106_2D_C"><img src
="weaponLib/stillMedia/thumbnails/a106_2d_c.jpg" alt="A106_2D_C"/>A106_2D_C</a>
<a class="vlightbox" href="weaponLib/stillMedia/images/a106_2d_d.jpg" title="A106_2D_D"><img src
="weaponLib/stillMedia/thumbnails/a106_2d_d.jpg" alt="A106_2D_D"/>A106_2D_D</a>
</sequence>
I need all those <a> tags to be copied/placed inside of a specific div within the dom. I know that it is reading it correctly cuz when I use the jQuery append, I get the normal text (the part just before the closing a tag) to be dispalyed in the div. Any suggestions?? I just tried .html() and using the document.getElementbyTagName as in:- onSelectRow: function() {
var gsr = $('#searchResults').jqGrid('getGridParam', 'selrow');
if (gsr) {
var data = $('#searchResults').jqGrid('getRowData', gsr);
$('#ss').html(document.getElementsByTagName('sequence'));
};
$('#theGrid').hide();
$('#itemAnalysis').show('fast');
},
What am I doing wrong???Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- 02-Jun-2010 01:05 PM
- Forum: Using jQuery
I have a application where I am receiving a xml file, selecting a row of data then appropriately putting the data in other specific divs to be used/displayed.
I have almost every thing working with exception of where I have more than one node in the xml file that repeats. Example:- <photo>
<pic>
<asset>weaponLib/stillMedia/slides/A106.jpg</asset>
<thumb>weaponLib/stillMedia/thumbs/A106.jpg</thumb>
<caption>Side view of DODIC A106</caption>
<title>Side view of 22 caliber long rifle ball cartridge</title>
</pic>
<pic>
<asset>weaponLib/stillMedia/slides/A106_A.jpg</asset>
<thumb>weaponLib/stillMedia/thumbs/A106_A.jpg</thumb>
<caption>Side view of DODIC A106</caption>
<title>Side view of 22 caliber long rifle ball cartridge</title>
</pic>
<pic>
<asset>weaponLib/stillMedia/slides/A106_B.jpg</asset>
<thumb>weaponLib/stillMedia/thumbs/A106_B.jpg</thumb>
<caption>Side view of DODIC A106</caption>
<title>Side view of 22 caliber long rifle ball cartridge</title>
</pic>
<pic>
<asset>weaponLib/stillMedia/slides/A106_C.jpg</asset>
<thumb>weaponLib/stillMedia/thumbs/A106_C.jpg</thumb>
<caption>Side view of DODIC A106</caption>
<title>Side view of 22 caliber long rifle ball cartridge</title>
</pic>
<pic>
<asset>weaponLib/stillMedia/slides/A106_D.jpg</asset>
<thumb>weaponLib/stillMedia/thumbs/A106_D.jpg</thumb>
<caption>Side view of DODIC A106</caption>
<title>Side view of 22 caliber long rifle ball cartridge</title>
</pic>
</photo>
I am using a jQuery plug-in called jqGrid as my grid application which feeds the row data through a onSelectedRow operation. I have a 'testing' alert box that says that I am the 4 pics and their data correctly. But when I push this data to a application called Galleriffic, my code breaks. I don't know enough about firebug to tell if I am forming the result correctly. I am pulling my hair out on how to implement either a $.each() function or $('#selector').each function so that I get an itteration effect.
in my ame-ui file, I am adding to the DOM through appends to form my <li> and <div> sequence. Then Galleriffic is supposed to take a look at this and produce a slideshow from it. My application works wonders as long as I only have one graphic that needs to be displayed. It breaks when I try wrapping #picListItems into a each() function.
Suggestions?? jqGrid is forming the listItems at line 193. The start of my galleriffic is at line 217.
I believe that I don't have my head wrapped around on how to use either .each function. Educate me please.
tony
It is not the job you get handed, but what you have done with it in the end that people remember.Attachments- ame-ui.js.txt
- Size: 22.76 KB Downloads: 2505
- Ok, maybe I am blind. I have a jqGrid onSelectRow operation that is taking specific data within a xml file and putting in a specific div within the DOM. IE and FF are reporting same problem. If I comment out this code, application runs like it should. Where is that missing ")" supposed to go??
- $('#slideshow #thumbs').append("<ul class='thumbs noscript'><li><a class='thumb' href='"data.piclocation" title='"data.piccaption"'><img src='"data.picthumb"' alt='"data.pictitle"' /></a><div class='caption'></div></li></ul>");
This code, when ran is supposed to append my <ul> to </ul> string above with data pulled from the static xml file (by way of a jqGrid) and put it in the thumbs <div> to end up looking something like this:- <div id="thumbs">
<ul class="thumbs noscript">
<li>
<a class="thumb" name="optionalCustomIdentifier" href="path/to/slide" title="your image title"><img src="path/to/thumbnail" alt="your image title again for graceful degradation" /> </a>
<div class="caption"> (Any html can go here) </div>
</li> ... (repeat for every image in the gallery)
</ul>
</div>
tony
jQuery plugin: Galleriffic version 2.0
jQuery: version 1.4.2
My whole js is attached.
It is not the job you get handed, but what you have done with it in the end that people remember.Attachments- ame-ui.js.txt
- Size: 23.43 KB Downloads: 2549
- NEWBIE Blonde moment!I have a xml document (static) that I need to test what is in a grand child element. The real application is a jqGrid. I have a onSelectRow operation going on. I can click on a row and get a response (in a alert window) for any root children. But how do I do this for anything deeper in the tree? A portion of my xml is attached.Here is my onSelectRow function:
- onSelectRow: function() {
var gsr = $('#searchResults').jqGrid('getGridParam', 'selrow');
if (gsr) {
var data = $('#searchResults').jqGrid('getRowData', gsr);
$('#basicMun h3').append("DODIC: " + data.dodic + "Nomenclature: " + data.nomenclature),
.append("Use: " + data.use + "Description: " + data.description)
.append("Length: " + data.objLength + "Width: " + data.objWidth);
alert(data.performance > velocity > unit);
}
}
I can always get a response in the alert box when I access things like dodic, nomenclature, use, etc. But my code breaks/freezes when I try and target things such as <unit> within elements like <objLength>. I have tried the above alert line and also alert(data.objLength.unit);, but neither one works.TonyIt is not the job you get handed, but what you have done with it in the end that people remember.Attachments- AME_sa-bullet.xml
- Size: 617 Bytes Downloads: 3540
- onSelectRow: function() {
- 03-May-2010 02:03 PM
- Forum: Using jQuery Plugins
I have two accordions (each within their own <div>) that are spilling over outside their own div and the next higher div too. I worked on this the whole weekend, can not find a suitable solution?? Any one have other ideas?I posted my problem to my testing website. Click ok for the security notice. Click on the bullet menu item that resides beneath Small Arms. This will bring up jqGrid. Select a bullet row within the grid. Click ok for the troubleshooting pop-up. The next screen is where I am having my issues with accordions. The accordions should remain within their highlighted borders (colored pink and red). I have tried specifying absolute sizes for the "left" and "right". No change. I have tried setting autoHeight to false which would work, but my user wants the accordions to be full screen (within the blue section) all the time. I have tried setting "clear" on both divs to "both", "left" and "right" in different configurations. This only throws the right div to a lower position on the screen. I even tried turning accordion's fullSpace option to false, but that makes my test within the panes not visible.Got any ideas??I would like to stay with UI's accordion due to it is compatible with themeroller.Tony- div#weapon {
height: 465px;
width: 957px;
padding: 10px 10px 15px 10px; /*top right bottom left */
margin-right: 15px;
background-color: #000033;
color:#FFFF00;
border: 1px solid red;
}
div#weapon div#left {
display: none;
clear: left;
float: left;
height: 465px;
width: 450px;
margin-left: 10px;
border: 3px dashed pink;
}
div#weapon div#right {
display: none;
clear: right;
float: right;
height: 465px;
width: 450px;
margin-left: 20px;
/*width: 47%; ORIGINAL SETTING W/O height spec */
border: 3px dashed red;
}
- // Specific JS scripting for AME Library
$(document).ready(function() {
$('#securityNotice').dialog ({
modal: true,
resizable: true,
overlay : {
background: '#fff',
opacity: '0.7'
},
buttons: {
Ok: function() {
$(this).dialog('close');
$('#welcome').show('fast');
}
},
width: 400,
resizable: false
});
$('#nav').droppy({
speed: 100
});
$('#left').accordion({
header: 'h3',
fillSpace: true,
collapsible: true
});
$('#right').accordion({
header: 'h3',
fillSpace: true,
collapsible: true
});
$('#bullet').click(function() {
$('#searchResults').jqGrid('GridUnload');
$('#searchResults').jqGrid({
url: 'weaponLib/AME_sa-bullet.xml',
datatype: 'xml',
colNames:["DODIC","NSN", "Size/Caliber", "Nomenclature"],
colModel:[
{name:"dodic",index:"dodic", xmlmap:"DODIC", width:30, align:"center", search: true, stype:"text"},
{name:"NSN",index:"NSN", xmlmap:"transData>NSN", width:40, align:"center", search: true, stype: "float"},
{name:"size", index:"size", xmlmap:"size",width:30, align:"center", search: true, stype: "float"},
{name:"nomenclature",index:"nomenclature", xmlmap:"nomenclature", width:120, align:"left", search: false, sorttype: "text"}
],
height:250,
width: 900,
viewrecords: true,
xmlReader: {
root : "smallArms",
row: "bullet",
repeatitems: false,
id: "[saId]"
},
onSelectRow: function() {
var gsr = $('#searchResults').jqGrid('getGridParam', 'selrow');
if (gsr) {
var data = $('#searchResults').jqGrid('getRowData', gsr);
alert(data.nomenclature);
};
$('#theGrid').hide();
$('#weapon #left').show('fast');
$('#weapon #right').show('fast');
},
sortname: 'dodic',
rowNum: -1,
altRows: true,
pager: '#gridNavBar',
caption: "Bullet Results"
});
$('#searchResults').jqGrid('navGrid', '#gridNavBar', {search: true, edit: false, del: false, add: false, refresh: false});
$('#welcome').hide('slow');
$('#theGrid').show('fast');
});
});
- 29-Apr-2010 04:25 PM
- Forum: Using jQuery UI
Somewhere along last week, my two accordions broke. I wished my company operated a cvs. but oh well.
I have my accordions set up as such:
- $('#left').accordion({ header: 'h3', fillSpace: true }); $('#right').accordion({ header: 'h3', fillSpace: true });
Here is the css for both accordions:
div#weapon div#left {
display: none;
clear: both;
float: left;
width: 47%;
height: 250px;
margin-bottom: 5px;
border: 2px solid red;
}
div#weapon div#right {
display: none;
clear: both;
float: right;
width: 47%;
border: 2px dashed purple;
}
So why is my accordions overflowing (like off the visual page - web site scrolls) the parent divs in vertical direction (div#right and div#left). Did I miss a "switch setting"???
here is the HTML:
<div id='right'>
<h3><a href="#" title="#">Performance</a></h3>
<div id='perfs'>
<p>In this container is where we will present to the user weapon performances such as operating temperatures, velocities, etc.</p>
</div>
<h3><a href="#" title="#">Containers</a></h3>
<div id='containers'>
<p>In this container, we will present to the user some of the particulars of how the item is packaged to include inner and outer packaging.</p>
</div>
<h3><a href="#" title="#">Transportation Data</a></h3>
<div id='transData'>
<p>This is where we will display transportation data to the user of such things as Hazard Class/Division, NSN, DODAC, DOTlabel, etc.</p>
</div>
<h3><a href="#" title="#">References</a></h3>
<div id='References'>
<p>This is where we will display item references such as publications or websites of specific interest</p>
</div>
Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- the more I think about my problem, the more I believe my issue is a standard noobie jquery issue instead of a jqGrid plugin problem. But then again.Eventually, this click on a row is supposed to push xml elements for a particular bullet/weapon into a accordion for further user viewing or analysis. but I need to find out what is in the grid's row as it stands now. I.E. do I need to pass a variable to my accordion and have the accordion go out and get the remaining data or has the grid already recovered my data and I just need to place the selected row data into its final resting place.Am I on the right track with my onselectRow scripting?? When I run it, I get an error in the alert box that says "[object Object]". Where is my thinking off???Here is what I have so far. Only the chemical and bullet/shotgun (under Small Arms) menu items work so far.Tony
- $('#bullet').click(function() {
$('#searchResults').jqGrid('GridUnload');
$('#searchResults').jqGrid({
url: 'weaponLib/AME_sa-bullet.xml',
datatype: 'xml',
colNames:["DODIC","NSN", "Size/Caliber", "Nomenclature"],
colModel:[
{name:"dodic",index:"dodic", xmlmap:"DODIC", width:30, align:"center", search: true, stype:"text"},
{name:"NSN",index:"NSN", xmlmap:"transData>NSN", width:40, align:"center", search: true, stype: "float"},
{name:"size", index:"size", xmlmap:"size",width:30, align:"center", search: true, stype: "float"},
{name:"nomenclature",index:"nomenclature", xmlmap:"nomenclature", width:120, align:"left", search: false, sorttype: "text"}
],
height:250,
width: 900,
viewrecords: true,
xmlReader: {
root : "smallArms",
row: "bullet",
repeatitems: false,
id: "[saId]"
},
onSelectRow: function(id) {
var gsr = $('#searchResults').jqGrid('getGridParam', 'selrow');
if (gsr) {
var data = $('#searchResults').jqGrid('getRowData', gsr);
alert(data);
};
},
sortname: 'dodic',
rowNum: -1,
altRows: true,
pager: '#gridNavBar',
caption: "Bullet Results"
});
$('#searchResults').jqGrid('navGrid', '#gridNavBar', {search: true, edit: false, del: false, add: false});
$('#welcome').css('display', 'none');
$('#theGrid').css('display', 'inline');
});
It is not the job you get handed, but what you have done with it in the end that people remember.- ok, I have no more hair to pull out. My scalp is sore. So I thought I would ask the experts....
I have a menu (structured in the old fashion UL/LI fashion) that is being controlled by jquery. Initial item selection operates as advertised. But when a "user" selects another menu item, the screen (div) does not reinitalize and react to the click of the new item.
Here is my online site that I am working on.
In my menu, only the Chemical and Small Arms items are programmed. Here is the code that is controlling say "Bullet" (under Small Arms).- $('#bullet').click(function() {
$('#searchResults').jqGrid({
url: 'weaponLib/AME_sa-bullet.xml',
datatype: 'xml',
colNames:["DODIC","NSN", "Size/Caliber", "Nomenclature"],
colModel:[
{name:"dodic",index:"dodic", xmlmap:"DODIC", width:30, align:"center", sorttype:"float"},
{name:"NSN",index:"NSN", xmlmap:"transData>NSN", width:40, align:"center"},
{name:"size", index:"size", xmlmap:"size",width:30, align:"center"},
{name:"nomenclature",index:"nomenclature", xmlmap:"nomenclature", width:120, align:"left"}
],
height:250,
width: 900,
viewrecords: true,
xmlReader: {
root : "smallArms",
row: "bullet",
repeatitems: false,
id: "[saId]"
},
rowNum: -1,
scroll: true,
altRows: true,
pager: 'gridNavBar',
caption: "Bullet Results"
});
$('#welcome').css('display', 'none');
$('#theGrid').css('display', 'block');
});
How do I make the div (searchResults) clear itself after the user clicks on another menu item (chemical for this example) before re-rendering the results grid??
Tony
It is not the job you get handed, but what you have done with it in the end that people remember.- Ok. Extreme newbie here.
I have a menu system that is structured in <ul>/<li> fashion. Code below. How do I attach JS functions to any single item? My functions will be going out and grabbing the static xml and applying some filtering/selections on it, then passing the result to a datagrid. Writing the function is not hard (standard JS), but how do I attach it to a <li> type of menu item?? Each high-level menu item (such as Small Arms, Bombs) will be performing selections on completely separate xml library files.
Tony- <ul id="nav">
<li><a href="#" title="#"><span>Home</span></a></li>
<li><a href="#" title="#"><span>Small Arms</span></a>
<ul>
<li><a href="#" title="#"><span>Shot Gun</span></a></li>
<li><a href="#" title="#"><span>Bullet</span></a>
<ul>
<li><a href="#" title="#"><span>22 cal</span></a></li>
<li><a href="#" title="#"><span>38 cal</span></a></li>
<li><a href="#" title="#"><span>45 cal</span></a></li>
<li><a href="#" title="#"><span>50 cal</span></a></li>
<li><a href="#" title="#"><span>5.56 mm</span></a></li>
<li><a href="#" title="#"><span>7.62 mm</span></a></li>
<li><a href="#" title="#"><span>9 mm</span></a></li>
<li><a href="#" title="#"><span>20 mm</span></a></li>
<li><a href="#" title="#"><span>25 mm</span></a></li>
<li><a href="#" title="#"><span>30 mm</span></a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#" title="#"><span>Bombs</span></a>
<ul>
<li><a href="#" title="#"><span>Practice</span></a></li>
<li><a href="#" title="#"><span>500 lb</span></a></li>
<li><a href="#" title="#"><span>1000 lb</span></a></li>
<li><a href="#" title="#"><span>2000 lb</span></a></li>
</ul>
</li>
- I am seeing a failure of the ui.dialog in IE7/8. With IE debugger turned on, it is saying that the "object doesn't support this property or method" when it runs the dialog.js (line 27) and "ui.dialog.overlay" is null or not an object (line 672).Then when it tries to run and set up/render my accordion, I get failures like "Object doesn't support this property or method" on ui.accordion.js (line 16 and 17).My dialog never does appear. And my accordion fails intermittently with its functionality.On the jQuery UI website, it says that the Dialog.js depends on the ui.core.js (mandatory) and then either/both ui.draggable.js or ui.resizable.js as options. The accordion has dependencies of ui.core.js and then ui.effects.core.js (only if you are using non-default animations).Even though the website does not state it, do I need to attach the ui.widget.core.js file??Does anyone know why I am seeing these darn bugs??When I link in the widget.js, I get a "Object expected" at line 51.What the heckTonyUPDATE: Ok, I got accordion to work. I found a typo "fillspace" vice "fillSpace". But I am still seeing alot of errors with my modal dialog box. Any insight would be much appreciated.It is not the job you get handed, but what you have done with it in the end that people remember.
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<meta name="description" content="'One Stop' shopping for U.S. Army ammunition related data - physical descriptions, transportation and stowage" />
<meta name="keywords" content="ammunition, munitions, defense, center, multimedia, encyclopedia, small arms, grenades, bombs, missiles, rockets, chemical, demolition, land mines, artillery, CAD, PAD, pyrotechnics" />
<meta name="author" content="Anthony Jackman" />
<link type="text/css" rel="stylesheet" href="css/main.css" media="screen" />
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1/themes/sunny/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="scripts/jq/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="scripts/js/droppy.js"></script>
<script type="text/javascript" src="scripts/jq/jquery.ui.core.js"></script>
<script type="text/javascript" src="scripts/jq/jquery.ui.dialog.js"></script>
<script type="text/javascript" src="scripts/jq/jquery.ui.accordion.js"></script>
<script type="text/javascript" src="scripts/jq/jquery.ui.resizable.js"></script>
<script type="text/javascript" src="scripts/js/jquery.textshadow.js"></script>
<script type="text/javascript" src="scripts/js/ame-ui.js"></script>
<script type="text/javascript">
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</script>
<script type="text/javascript">
$(document).ready(function() {
$("#securityNotice").dialog ({
modal.true,
resizable: true,
buttons: {
I Agree: function() {
$(this).dialog('close');
}
}
});
});
</script>
<title>Deparment of Army - DAC - Ammunition Multimedia Encyclopedia</title>
</head>
<body>
<div class="header" id="header"> <img src="media/DAClogo.png" alt="Defense Ammo Center logo" width="83" height="87" />
<h1>Ammunition Multimedia Encyclopedia</h1>
<h4>Defense Ammunition Center, McAlister, Oklahoma, USA</h4>
</div>
<div id="navWrapper">
<ul id="nav">
<li><a href="#" title="#"><span>Home</span></a></li>
<li><a href="#" title="#"><span>Small Arms</span></a>
<ul>
<li><a href="#" title="#"><span>Shot Gun</span></a></li>
<li><a href="#" title="#"><span>Bullet</span></a>
<ul>
<li><a href="#" title="#"><span>22 cal</span></a></li>
<li><a href="#" title="#"><span>38 cal</span></a></li>
<li><a href="#" title="#"><span>45 cal</span></a></li>
<li><a href="#" title="#"><span>50 cal</span></a></li>
<li><a href="#" title="#"><span>5.56 mm</span></a></li>
<li><a href="#" title="#"><span>7.62 mm</span></a></li>
<li><a href="#" title="#"><span>9 mm</span></a></li>
<li><a href="#" title="#"><span>20 mm</span></a></li>
<li><a href="#" title="#"><span>25 mm</span></a></li>
<li><a href="#" title="#"><span>30 mm</span></a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#" title="#"><span>Bombs</span></a>
<ul>
<li><a href="#" title="#"><span>Practice</span></a></li>
<li><a href="#" title="#"><span>500 lb</span></a></li>
<li><a href="#" title="#"><span>1000 lb</span></a></li>
<li><a href="#" title="#"><span>2000 lb</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>Grenades</span></a>
<ul>
<li><a href="#" title="#"><span>Hand</span></a></li>
<li><a href="#" title="#"><span>Practice</span></a></li>
<li><a href="#" title="#"><span>Special</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>Land Mines</span></a>
<ul>
<li><a href="#" title="#"><span>Anti-Personnel</span></a></li>
<li><a href="#" title="#"><span>Anti-Tank</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>Missiles</span></a></li>
<li><a href="#" title="#"><span>Artillery</span></a>
<ul>
<li><a href="#" title="#"><span>40 mm</span></a></li>
<li><a href="#" title="#"><span>60 mm</span></a></li>
<li><a href="#" title="#"><span>75 mm</span></a></li>
<li><a href="#" title="#"><span>81 mm</span></a></li>
<li><a href="#" title="#"><span>105 mm</span></a>
<ul>
<li><a href="#" title="#"><span>Anti-Tank</span></a></li>
<li><a href="#" title="#"><span>Howitzer</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>120 mm</span></a>
<ul>
<li><a href="#" title="#"><span>Anti-Tank</span></a></li>
<li><a href="#" title="#"><span>Mortar</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>155 mm</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>Rockets</span></a>
<ul>
<li><a href="#" title="#"><span>Aircraft Launched</span></a></li>
<li><a href="#" title="#"><span>Ground Launched</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>CAD/PAD</span></a>
<ul>
<li><a href="#" title="#"><span>Cartridge Activated Device</span></a></li>
<li><a href="#" title="#"><span>Propellant Activated Device</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>Pyrotechnics</span></a>
<ul>
<li><a href="#" title="#"><span>Flares</span></a></li>
<li><a href="#" title="#"><span>Signals</span></a></li>
<li><a href="#" title="#"><span>Simulators</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>Demolition</span></a>
<ul>
<li><a href="#" title="#"><span>Charges</span></a></li>
<li><a href="#" title="#"><span>Kits</span></a></li>
<li><a href="#" title="#"><span>Initators/Primers</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>Chemical</span></a>
<ul>
<li><a href="#" title="#"><span>Smoke</span></a></li>
<li><a href="#" title="#"><span>Riot</span></a></li>
</ul>
</li>
<li><a href="#" title="#"><span>Search</span></a></li>
<li><a href="#" title="#"><span>Help</span></a></li>
</ul>
</div>
<div id="weapon">
<div id="itemBrief" style="color: black; font-weight: bold">This is the item brief containing nomenclature, description, use, wpn, type and dodic
<p id="nomen"></p>
<p id="descript"></p>
<p id="use"></p>
<p id="wpn"></p>
<p id="type"></p>
<p id="dodic"></p>
</div>
<div id="left">
<h3><a href="#" title="#">Weapon Particulars</a></h3>
<div id="wpnPartics">
<p>Now is the time for all good men to come to the aid of their country</p>
</div>
<h3><a href="#" title="#">Visual Aides</a></h3>
<div id="visAides">
<p>Who cares if they come to the aid of their own country. It has already gone to hell!</p>
</div>
</div>
<div id="right">
<h3><a href="#" title="#">Performance</a></h3>
<div id="perfs">
<p>Now is the time for all good men to come to the aid of their country</p>
</div>
<h3><a href="#" title="#">Containers</a></h3>
<div id="containers">
<p>Who cares if they come to the aid of their own country. It has already gone to hell!</p>
</div>
<h3><a href="#" title="#">Transportation Data</a></h3>
<div id="transData">
<p>Who cares if they come to the aid of their own country. It has already gone to hell!</p>
</div>
<h3><a href="#" title="#">References</a></h3>
<div id="References">
<p>Who cares if they come to the aid of their own country. It has already gone to hell!</p>
</div>
</div>
</div>
<div id="welcome">
<h2>Welcome to the Ammunition Multimedia Encyclopedia</h2>
<p>One mission within the DAC is to provide training on the storage, transport, and handling of munitions. This includes initial training as well as periodic follow-on training as new munitions are developed and shipped to the field. The goal of this website is to provide a comprehensive "one stop shop" to support personnel handling munitions. It provides an encyclopedia of currently used munitions which can be used for identification and refresher training.</p>
</div>
<div id="searchRequest"></div>
<div id="searchResults"></div>
<div id="securityNotice" title="Security Notice">
<p>You are not supposed to be here. Get out while you still can. We are tracking your IP and MAC address. Your computer will cease to operate in 60 seconds.
</p>
</div>
</body>
</html>
- // Specific JS scripting for AME Library
$(document).ready(function() {
$('#nav').droppy({
speed: 100
});
$('#left, #right').accordion({
fillspace: true,
autoHeight: false
});
});
/**************************** Global Site Styles **************************/
body {
background: #999999;
margin: 0 0 0 15px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
width: 975px;
height: 590px;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
#securityNotice {
display: none;
}
/******************************** Site Title/Header Styles ************************************/
div#header {
background-color: #FF9900;
border-style: none;
width: 100%;
height: 97px;
margin: 0 0 0 0;
}
div#header img {
float: left;
height: auto;
width: auto;
margin-left: 10px;
margin-top: 5px;
}
div#header h1 {
font-family: Garamond, Wide Latin, serif;
font-size: 36px;
font-style: oblique;
color: #385535;
text-align: center;
position: relative;
font-weight: bold;
padding-top: 10px;
margin-top: 0px;
filter:progid:DXImageTransform.Microsoft.Shadow(color=#385535,direction=67,strength=15);
}
div#header h4 {
font-family: Garamond, Verdana, Arial, serif;
color: #385535;
text-align: center;
position: relative;
font-weight: bold;
font-style: oblique;
padding-bottom: 5px;
}
/********************End of Site Header styles ****************************/
/******************** Navigation Menu Styles *****************************/
/***************** Basic code - don't modify **************************/
#navWrapper {
z-index: 99;
}
#nav {
margin: 0;
padding: 0;
position: relative;
}
#nav li {
display: block;
list-style: none;
margin: 0;
padding: 0;
float: left;
position: relative;
}
#nav a {
display: block;
}
#nav ul {
display: none;
position: absolute;
left: 0;
margin: 0;
padding: 0;
}
* html #nav ul {
line-height: 0;
} /* IE6 fix */
#nav ul a {
zoom: 1;
} /* IE6/7 fix */
#nav ul li {
float: none;
}
#nav ul ul {
top: 0;
}
/******************** Essentials - configure this *******************/
#nav ul {
width: 130px;
}
#nav ul ul {
left: 131px;
}
/***********************End of Configuration ***********************/
/********************* Everything else is theming ********************/
#nav {
background-color: #30A8C3;
height: 24px;
}
#navWrapper {
z-index: 99;
}
#nav *:hover {
background-color: blue;
}
#nav a {
border-right: 1px solid white;
color: white;
font-size: 12px;
padding: 6px;
line-height: 1;
}
#nav li.hover a {
background-color: #5E5A5A;
}
#nav ul {
top: 25px;
}
#nav ul li a {
background-color: #5E5A5A;
}
#nav ul a.hover {
background-color: #30A8C3;
}
#nav ul a {
border-bottom: none; /* 1px solid white */
border-right: none;
/*opacity: 0.9; This only works with FF */
filter: alpha(opacity=90); /* part of the CSS3 recommendation, this style is IE only */
}
/************************End of menu section ************************/
/*********************** content area styles *************************/
div#weapon {
height: 465px;
background-color: #000033;
text-align: center;
color:#FFFF00;
border: 1px solid red;
}
div#welcome {
display: block;
font-family: Arial, Helvetica, Verdana, sans-serif;
padding-right: 30px;
padding-left: 40px;
border: 1px solid red;
}
div#welcome h2 {
margin-top: 0;
padding-top: 60px;
padding-bottom: 30px;
text-align: center;
}
div#welcome p {
text-align: left;
}
div#weapon div#itemBrief {
background-color: #00FFCC;
border: medium dashed #660000;
}
div#weapon div#left {
clear: none;
float: left;
width: 45%;
}
div#weapon div#right {
clear: none;
float: left;
width: 45%;
}
Attachments- ame-ui.js.txt
- Size: 215 Bytes Downloads: 2102
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- «Prev
- Next »
- <ul id="nav">
- $('#bullet').click(function() {
- $('#bullet').click(function() {
- onSelectRow: function() {
Moderate user : energetic.pixels
- .ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
© 2013 jQuery Foundation
Sponsored by
and others.