Javascript Styling
May 3, 2002
i am at the end of my web application, and now that my functionality works, i have decided to touch things up some. This effort has taken me to an end where i must start the task of styling some context menus i have that are generated from javascript OO programming. Each onContextMenu click, on any given node, or the document for that matter, shows an object that is shown by overwriting the default context display,..
the object (contextMenu) has several members such as, contextMenu.item, nodeType, and so on.
Each item is an array of the possible context menu commmands. And the whole thing works great, but i have no experience making these items and the contextMenu look good, so all of my menus display, but have big horrible font and what not. I was hoping somebody could start me in the right direction for research or possibly give me an example of a way to make the item objects have a certain font, or display with a specific border width.
View 15 Replies
ADVERTISEMENT
Aug 14, 2009
obj.style.width = oSpan.offsetWidth + 17 is not working in IE8 but works fine for other browsers.
Is there an alternate to do dynamic styling in IE8.
View 5 Replies
View Related
Nov 1, 2011
I am using a CMS where the blogging platform isn't the greatest.Basically I am wanting to give the first post preview different styling to the rest of the post previews on the page.Here is an example of what I am trying to achieve:[URL]You can see the first post preview has a bg color and border etc.So here is the code my CMS outputs for the blog previews
<div id="catblogoutput">
<div class="blog-post">
1st blog preview here
[code]....
View 2 Replies
View Related
May 25, 2011
how I can style the html output of the following statement:
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
[code]....
View 13 Replies
View Related
Nov 15, 2011
I think that the way I have worded the title may be incorrect, as I've googled similar phrases without finding anything to help me Anyway onto the issue
I have a dropdown menu
you can see it here:
http://heavywoollen.webs.com
It's written in html & css, now I've had to put the code for the dropdown onto every page of the site, simply because at the time that was all i knew how to do, so I'm now trying to reduce it by writing it on JS and link the file into the page so the issue/question
[Code]...
View 3 Replies
View Related
Aug 7, 2011
i have a few textboxes that are prepopulated using the text value to show 'First name' , 'Surname' etc and are removed on focus by the user.
Can these be styled as currently they appear black but client wants them light grey, but i dont want the entered text to be affected just the initial displayed text.
View 2 Replies
View Related
Oct 19, 2009
I'm trying to style a form using jquery, but it's not working, specifically the replacement of the (required) text with * or **. what is wrong with my code:
[URL]
// JavaScript Document
$(document).ready(function(){
$('legend').wrapInner('<span></span>');
});
[Code]....
View 2 Replies
View Related
Jun 1, 2009
I've been looking around the web for solutions to styling HTML form elements and haven't come up with much. Has anyone found a jQuery plugin (or possibly a standalone javascript) that lets you do this? I'm especially interested in styling the <select> element, but it would be great to know to have a resource that styles other items as well. It would need to be compatible with IE6+
View 2 Replies
View Related
Apr 7, 2010
I am using [URL] works great, except that I cannot style the tab buttons how I want them. Is it possible to use Tabs without any styling, so that I can fully style using my global stylesheet?
View 1 Replies
View Related
Apr 14, 2009
Is there a way to determine which css file is applied to a page using js?I have a regular css file and a "print" css file linked in the html <head> and I want the js to determine which css file is being used to style the page and basically turn itself off if the print version of the css is being used.
View 3 Replies
View Related
Jul 7, 2009
I have the following script which adds a touch of style to the labels that contain checked checkboxes:
function decorateCheckedBoxes()
{
var form = document.getElementById("filtreEtudiant");
var inputs = form.getElementsByTagName("input");
[Code].....
If I take the script away, the css works fine. but as soon as I add the script, I need the orange part to acheive the rollover effect. Is this normal? Is there a way to change the style of an element without affecting it's onhover style?
View 5 Replies
View Related
Feb 7, 2010
I have a complex form and a 'Print' button which should print only the contents of a specific DIV. I am using the following function (i found on another forum):
function PrintContent() {
var DocumentContainer = document.getElementById('divName');
var WindowObject = window.open('', 'PrintWindow',
[code]....
While using this, the CSS styling of the DIV are missing.How can I print the DIV's contents and keep the CSS styling.Before using that function, I tried "execCommand("Print")" but the results weren't good at all. it printed only a small part of the content.
View 4 Replies
View Related
Oct 20, 2009
Code:
function stripeTables() {
if(!document.getElementsByTagName) return false;
var tables = document.getElementsByTagName("table");
for(var i=0;i<tables.length; i++) {
[code]....
how does the script know if odd is true or false? The script works, but I'm missing this one concept. Is "odd" a JS keyword or something?
View 4 Replies
View Related
Jun 20, 2009
Haven't used cookies before really but I'd like to create a cookie that remembers the options a user has selected so they can have their styling next time they visit. The user selects the styles through 2 drop down boxes. Below are the drop down boxes for the information I would like the cookie to remember.
HTML Code:
<script type="text/javascript">
function fontsize() {
selectedstyle = document.form1.font.selectedIndex;
newsize = document.form1.font.options[selectedstyle].value;
[Code]...
View 2 Replies
View Related
Dec 2, 2010
I am styling my text fields with the code below and I am trying to implement the GeoNames autocomplete functionality:
[Code]...
ui-autocomplete-loading gets added to the input field as a class when someone is searching a location. I don't know how to make this image show up.
View 1 Replies
View Related
Oct 5, 2007
I would like to know how one can syle the multifile plugin, I wouldalso like to change the placement or make the file queue invisible.
View 2 Replies
View Related
Dec 14, 2011
I'm displaying 2 iframes on a page with content from other pages on the same domain. I'm using jQuery to apply a stylesheet to the 2 iframes.
$('#col1iframe, #col2iframe').load(function(){
$(this.contentDocument).find('head').append('<link rel="stylesheet" href="css/iframe-styles.css">');
$(this.contentDocument).find('a').attr({"target":"_top"});
[Code]...
View 5 Replies
View Related
Jul 10, 2011
I have a page (index.php) with a pictures carousel that works with css and jquery. I want to loaded a new carousel into a <div> after the page is loaded using the $('#mydiv').load('myscript.php') function that calls a php script returning the html code for the carousel, containing a list of images.So I have a <ul> of pictures that doesn't work as a carousel without the CSS and jquery code that has been loaded on the page when my index.php loaded on the first place.So, since the page has already been loaded the carousel doesn't work properly.It seems like the jquery code for the carousel to work, should execute every time I load a new list of images with the load() function.
View 1 Replies
View Related
Nov 18, 2010
I am using jQuery UI [URL] I have it all working but I wanted to style my form button I am using this:
<button id="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button" aria-disabled="false"><span class="ui-button-text">A button element</span></button>
that styles it, but doesn't work as I need it to be a form button?!
View 4 Replies
View Related
Apr 23, 2011
I have a page at URL... where I have styling on the radio and check boxes.I'm working on another project for class now where I want onclick or onchange functions in the radio buttons. When the radio buttons have the class="styled" on them, the function will not execute. When that's removed, they do.This is what one of my radio buttons looks like:<input type="radio" name="puppy" value="1" class="styled" onchange=" puppycheck()"> Black and White Puppy.If the style tag is removed it works perfectly.
View 1 Replies
View Related
Jun 25, 2010
I am using a VERY simple jquery plugin for styling drop down select menus.. The installation and implementation was SUPER simple.. Drop code here, name your select area, call for the jquery and JS pages.. Got it all working but I need just one little fix and I thought i figured it out, but apparently not. The person who created it did so with a max height option that is calculated based on the length of the list (it seems). This, to me, is crazy.. so if i have a three item list, there will ALWAYS be a scroller because its calculating the max height at one line item less than what is there. I am not very good with javascript and was hoping someone could have a look. The files and all of the stuff you would need can be found on this page: [URL]
View 1 Replies
View Related
Aug 26, 2010
I am trying to style a parent element with a hover state style. I want to change the background colour when hovered over. I cant edit the html as this is generated automatically from a cms.
HTML example
<td>
<a>
<div id=timetablemenu>Timetable</div>
[Code]....
This works fine but i need to add a rollover background colour change. I have tried timetablemenuTag.parentNode.parentNode.addClass="timetable2"; and adding CSS but this doesnt seem to work.
View 6 Replies
View Related
Sep 25, 2011
I've been given the task of designing within this incredibly rigid site builder program of a clients (seriously I think it's coding circa 1995). I've got a design, but we've had some browser complications. Like I said this thing is very particular, the only way I can change anything is by adding snippets of code in a custom html form that they have. Working everything around, I've had to position an image absolutely so it doesn't expand the body of the page. This though has conflicted with some hover over dropdown submenus. I've figured out that if I can just change that style to the next z-index level it could work. I can't place any kind of code above this instance, so I wondered if I would be able to do this with javascript using a window.onload call? It's been awhile since I've done anything with javascript, so I'm not entirely sure how to do this, or for that matter if it's even possible.
One other thing, this is called on by a class. I know I can't use getElementByID, but think it might be possible to use getElementByTagName ('ul') to do this.
View 1 Replies
View Related
Oct 4, 2011
In IE8, Cycle appears to be applying styling _after_ the transition, and it produces a weird visual effect.
Take a look at the bottom demos in IE8 on the Intermediate-2 examples from the Cycle site. See how the styling on the font changes after transition? [URL]
View 1 Replies
View Related
Sep 29, 2011
I'm trying to give a style to my datepicker but I don't achieve to add color to some days, I've only achieved to make the border color. What should I put on my css so that all the day appear with a color and not only the border? I've tried with background and background-color.
DatePicker.css:
.diaFestivo
{[code].....
View 3 Replies
View Related
Mar 8, 2011
JQuery and I have a function which adds an image to a link depending on the file type.
How to write a statement that says....if there is no file extension - leave the default styling, if not add file extension. At the moment I have dots and images..see here [url]
View 8 Replies
View Related