Give Individual Cell's A Border?
Jul 20, 2005I would like to have just the top row cells of a table to have borders - is
this possible/easy? or do I have to make the title row another table?
I would like to have just the top row cells of a table to have borders - is
this possible/easy? or do I have to make the title row another table?
I have a page that has a scrolling ticker at the top and streaming video in the middle. I want the scrolling html marquee at the top to refresh every 30 seconds but I can't reload the entire page or the video will restart.
I know that javascript could do this but I have no idea where to start or how to do it.
has anyone done this and can paste me some code to use?
See the table code below. Because this table is created by a third party application, I can't modify their code. So, I'm stuck trying to find other ways to change the table styles. I figured jQuery would be a great way to accomplish this, but I can't figure out the correct code. Can someone show me how to change all cells, or certain cells (dddefault and ddlabel) to have a border? I've gotten close, but it only affects the first cell.
<TABLE CLASS="datadisplaytable" SUMMARY="This layout table is used to present the weekly course schedule." WIDTH="80%">
<TR>
<TH CLASS="ddheader" scope="col" > </TH>
<TH CLASS="ddheader" scope="col" > Monday </TH>
[code]....
I have some TD tags like this
I want to give the cells a background color green, where Percentage to Total Balance when added together exceeds or equal to 60%.
For example row 3, row 4 and row 5
I have to ad a line between some rows, but not for the first col.the table has:table { border-collapse: collapse }that is fix and I can not change it.the following sample code draws the lines nicely in IE6 but in FF there'sjust nothing (also used color here, to see if the selectors are right):
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unbenanntes Dokument</title>
[code]....
I am trying scrolling of images as like: [url]. I do want to set border for the images with border property as "2px solid #000" and i do want gap between the images so that the horizontal gap value is 20px.
I tried even with image border propoerty and image style properties both border and padding as 0 20px. Both not working properly. The style padding property is working fine in firefox and google chrome. But it is working in IE 6.0
I'll paste my code for your reference.
What I want to do is change the border of several images on the page to show a 4px border. There are many images on the page so I just want to call the changeborder() function on the onClick event so as the image that has been clicked changes. However, I don't think using this.style.border to identify the element works when placed within the function. That is, how do I identify, from the function, which image has been clicked? My current code (which does not work) looks like this but I am sure its possible to gather what i'm trying to achieve:
<script type="text/javascript">
function changeborder()
{
this.style.border='4px solid red'
}
</script>
<img style="border: 1px solid #F4F4F4;" onclick="changeborder()" src="images/colours/010.jpg" border="0">
is there a way how to detect if mouse is over the border table and over cell border? and if yes, when user click and host button and move mouse cursor (to increase cell width) which event should i detect ?
View 1 Replies View RelatedI am using javascript for pop-ups, but I want each pop-up on the page
to have its own resize. Code:
I shoud give a "value" to an DIV's ID that change following the name of the
directory where the file is.
For example the file is here:
www.website.com/web/01/file.html
Is it possible with javascript to give the value "01" to the DIV's ID?
<div id="namedirectory"something inside </div>
so it could be readed as:
<div id="01"something inside </div>
I found in internet this one:
<script language="JavaScript">
fullpath=location.pathname;
document.write(fullpath);
document.write('<br />');
result=fullpath.split("");
document.write(result[5]);
</script>
it's something that could work?
I don't know how to recall the value in the ID...
. I basically have a simple AJAX voting sytem for stories. The problem I have is the php script takes a $_GET['id'] to work. What I was wondering was how I can pass the id value via AJAX to the PHP script.
[Code]...
I have looked at this code and determined I will get the following if I run individual variable.
x = 10
y = 5
z to 5
However I am not sure. Because when I run the function using document.write
Like this:
Code:
document.write(get_xyx());
I get undefined
Here is the code:
Code:
<script type="text/javascript">
var n=5;
var x=n + n;
var y=n + n;
function get_xyz () {
var x = n;
y = n;
z = n;
}
get_xyz();
</script>
I have two functions. How to give onchange events.
function toggleDivs(c) {
-----
---}
function disable3checkboxes(event, srcElement) {
---
---}
I want to be able to enter a value on a page (like 3.2), and then read
it as a 32-bit float and break it into it's individual bytes.
I've tried using bitwise operators, but they seem to convert the value
into an integer first, and i've tried using the toString() method to
convert it into a hex value so i can parse it, but that also seems to
first convert it into an integer.
I'm trying to use the $.ajax to load an html file that has content grouped by divs with id's. I would then call the correct content via its id depending on the window.location.hash. I'm having trouble figuring out how to append the content to the existing <div class="content"> on the page.
script.js
$(document).ready(function()
{ $.ajax({
url: 'source.html',
[Code].....
Basically I have created 3 pages - index.html, page1.html + page2.html
I have 2 links in index.html that link off to page1.html + page2.html
My question is, can I use javascript in such a way that if I click link 1 then page1.html opens in a new window but if I then click link 2 then page2.html appears in the window that currently has page1.html?
insert hyperlinks into the individual images?
see the code at the following address:
[URL]
I was wondering if anyone was aware of a script that would reccomend products from a list on another individual products page?
I would like something that will list three products that a customer might be interested in when they are viewing an item on my site.
I have an ecommerce site where I was told that I needed to use javascript to avoid paying alot of money for something very complex and more than what I need.
Does anyone know if this is possible and if so, do you have a script to get me started?
I have a start on a code which is:
/**
* @author
* @version December 8, 2009
*/
[Code]....
Now, my problem is, I'm not sure how to combine the words to only show once (i.e. only show the word "the" once, with a ": (number of times the words has appeared)" next to it.
By the way, this is what the assignment says:
To do this have two local arrays in your method, words, which is a String[100] array and count, which is an int[100] array. (There won�t be more than 100 unique words in the file.) Each time you read in a new word using next() first scan through the values currently in the words array to see whether it is already there. If it is, then add one to the value in count with the same index. If it isn�t then add the word to the words array and set the corresponding count element to 1. As you have in previous programs you�ll need a variable called, say, nextIndex, which is initially zero and gives the next available location in the array.
I have a page with checkboxes generated by a script. Users are suppose to select the checkboxes and click on a button to process their selection. The codes work fine except when I only have one checkbox on the page. Then it will not register sReturn.....
View 6 Replies View RelatedHow do i acces variable: id inside <a href.. and append my querystring variable to it?
example
<div id="email">
<a href="Emaillist_3212.html?id="><img alt="list" src="pics/email32.png"/>
<span class="name">Emails (?)</span>
[Code]....
I'm working on this page: Work in progress
I'm using this tutorial:
On my work in progress link, I have two players on one page that just replace each other. The problem is with the left and right navigation arrows on the picture viewer. When you switch to the video player (grey video button on below player) the navigation arrows remain, I want them to only appear on the picture viewer. I think I can do this using z-index in css but need to give the two arrows some id's so I can select them. I can't seem to work it out in jquery! How to give the two images id's (see code below) or even better, make them only appear when you are on the picture viewer.
//** Step Carousel Viewer- (c) Dynamic Drive DHTML code library: [URL]
//** Script Download/ [URL]
//** Usage Terms: [URL]
//** Current version 1.9 (July 28th, 10'): See [URL] for details
jQuery.noConflict()
var stepcarousel={
ajaxloadingmsg: '<div style="margin: 1em; font-weight: bold"><img src="ajaxloadr.gif" style="vertical-align: middle" /> Fetching Content. Please wait...</div>', //customize HTML to show while fetching Ajax content
defaultbuttonsfade: 0.4, //Fade degree for disabled nav buttons (0=completely transparent, 1=completely opaque)
configholder: {}, .....
I have a text box to which I give focus when a page loads. There is more than one submit button on the form. When I enter something in the textbox then hit Enter the first submit button on the form is activated. Is there some simple code I can use to shift focus to the submit button I want as I press Enter?
View 10 Replies View Relatedi have a page with lots of checkboxes and hidden fields. When i tick a checkbox i want it to give the hidden filed a value. But give it no value if it is not ticked. For every checkbox i have a hidden field is with it. Both the checkbox and the hidden field send information. I have used some js scripts but they don't seem to work with more than one checkbox.Example:
<input type="checkbox" name="box1" id="box1" value="4th July 2009,">
<input type="hidden" name="price1" id="price1" value="0">
So when box1 is ticked it then gives price1 a value. But if not ticked then the value remains at 0. I want it to give a value of 699.There will be about 100 checkboxes and hidden fields on the page. Also onclick behaviours do not work because it may still send the information if the checkbox is not checked.So for the next checkbox and hidden field i use box2 and price2.
I was wondering if there was any way I can give a child element, preferably the first one, a link through a parent element with an ID. code...
View 6 Replies View RelatedI have a image which need to be cropped from edges slightly to give a hexagon shape. see the attached image to see how the appear ance should be.
Would lik to crop images while loading on to this frames/boxes.