i have the following simple code, but it doesn,t work
<ul>
<li id="one" onmouseover="this.style.background-color='white';">
<a href="#">home</a>
</li>
</ul>
could you tell me why.
thanks
Hi,
i just finish some MYSQL to excel script with xlwt and I need to colour every second row for easy reading.
I have tried this:
row = easyxf('pattern: pattern solid, fore_colour blue')
for i in range(0,10,2):
ws0.row(i).set_style(row)
Alone this colouring is fine, but when when I write my data rows are again white.
Can some please show me some example 'cuz I m lost in coding :/
Best Regards.
I am working on a website that has a menu which behaves correctly on FF but not on IE (as usuall).
On IE it floats to the right while it should float to the left, however if float is set to none it behaves almost correctly, attaching the onto the top of the container.
Here's the css:
#navigation_wrap
{
background: url(../images/ltr/nav_bg.png);
height: 34px;
width: 954px;
}
.btn_login
{
float: right;
margin: 4px 4px 0 0;
}
.navigation
{
float: left;
}
.navigation ul
{
list-style: none;
margin: 8px 0 0 15px;
}
.navigation ul li
{
border-right: 1px solid white;
float: left;
padding: 0 12px 0 12px;
}
.navigation ul li.last
{
border: none;
}
.navigation ul li a
{
color: white;
font-size: 14px;
text-decoration: none;
}
.navigation ul li a:hover
{
text-decoration: underline;
}
.navigation ul li a.active
{
font-weight: bold;
}
And here's the html:
<div id="navigation_wrap">
<div class="navigation">
<ul>
<li><a class="active" href="default.asp">Home Page</a></li>
<li><a class="" href="faq.asp">FAQ</a></li><li><a class="" href="articles.asp">Articles</a></li>
<li><a class="" href="products.asp">Packages & Pricing</a></li>
<li><a class="" href="gp.asp?gpid=15">test1</a></li>
<li><a class=" last" href="gp.asp?gpid=17">test asher</a></li>
</ul>
</div>
<div class="btn_login">
...
</div>
</div>
I hope anyone would have an idea.
Thanks,
Omer.
Hi together,
can I change the background image of my TTThumbsViewController. It's the thumbnail overview screen and at the moment it is white. Can I turn it to transparent?
Thx :-)
<div style="background-color:black">
<div style="float:right">
Test message
</div>
<div>
This will show 'Test message' with white background because the parent div didn't fit the content.
How can achieve that? (without using table, or display:table since it's not supported in IE)
I have a submit button that changes when the user hovers his mouse over it. Right now the image is taking a while to load and you get a half second where there is white screen instead of the other button. Is there anyway to improve this using just CSS and HTML or do I need to do some JS work?
i have the variable $a = 5; i want to show it in binary form, with length, equal 8, with writing * at white spaces, just like this, like this * * * * *101
here the script
$number = 5;
printf("%*8b", $number);
it doesn't work with *, but if "0"-s it works
printf("%08b", $number);
//returns 00000101
why it doesn't work with *?
I've just converted an application from MVC 1 to MVC 2 using the VS2010 wizard. Not found is the Html.RenderPartial which I have sprinkled around a number of views. I am guessing that this is something that I've done wrong because I see no mention of this as a breaking change in the white papers and docs. Everything I'm using is RTM/RTW and no beta or RC versions.
Hi,
I am scheduled to have an onsite interview so I am preparing few basic questions. According to the company profile, they are big on string manipulation questions. So far i am manually coded these functions:
1) String length, copy, concat, remove white space
2) Reverse
3) Anagrams
4) Palindrome
Please can some can give me a list of more classic string questions which i can practice before going there.
Hi,
I'm creating a custom WinForms TextBox control, like this:
class MyTest : TextBox
{
protected override void OnEnter(EventArgs e)
{
this.BackColor = Color.Yellow;
}
protected override void OnLeave(EventArgs e)
{
this.BackColor = Color.White;
}
}
When I build the project, I cannot see the control. Can anyone explain why not?
Thanks in advance.
After the user clicks on a table row, I want it to check if the table row's background-color is white, and if so, it will change the color to light blue.
The code I am using is not working. Here it is:
$("#tracker_table tr#master").click(function(){
if($(this).css("background-color") == "#FFFFFF") {
$(this).css("background-color", "#C2DAEF");
}
});
I think there is something wrong with my if statement. How do I check for a css value using jQuery?
I have a number between 0.0 and 1.0, I would like to convert it to a grayscale color.
White = 0
Black = 1
You can show me how in any understandable language (I prefer actionscript 3)
Please, don't just give a name of a function that a language have to do this, I want to know how it does.
I have a custom tag as follows. repeat and heading tag have doAfterBody method implemented.
<csajsp:repeat reps="5">
<LI>
<csajsp:heading bgColor="BLACK">
White on Black Heading
</csajsp:heading>
</LI>
</csajsp:repeat>
/* Repeat tag Class*/
public void setReps(String repeats) {
System.out.println("TESTING"+repeats);
//sets the reps variable.
}
public int doAfterBody() {
System.out.println("Inside repeate tag"+reps);
if (reps-- >= 1) {
BodyContent body = getBodyContent();
try {
JspWriter out = body.getEnclosingWriter();
System.out.println("BODY"+body.getString());
out.println(body.getString());
body.clearBody(); // Clear for next evaluation
} catch(IOException ioe) {
System.out.println("Error in RepeatTag: " + ioe);
}
return(EVAL_BODY_TAG);
} else {
return(SKIP_BODY);
}
}
/* Class of Heading tag */
public int doAfterBody()
{
System.out.println("inside heading tag");
BodyContent body = getBodyContent();
System.out.println(body.getString());
try {
JspWriter out = body.getEnclosingWriter();
out.print("NEW TEXT");
} catch(IOException ioe) {
System.out.println("Error in FilterTag: " + ioe);
}
// SKIP_BODY means I'm done. If I wanted to evaluate
// and handle the body again, I'd return EVAL_BODY_TAG.
return(SKIP_BODY);
}
public int doEndTag() {
try {
JspWriter out = pageContext.getOut();
out.print("NEW TEXT 2");
} catch(IOException ioe) {
System.out.println("Error in HeadingTag: " + ioe);
}
return(EVAL_PAGE); // Continue with rest of JSP page
}
The order in which SOP are printed is
1) Setter method of csajsp:repeat is called.
2) White on Black Heading is printed. ie doAfterBody of csajsp:heading tag is called.
I don't know why it is not calling doAfterBody of csajsp:repeat tag.
Please help me to understand this.
Thanks in advance.
hi . i want build a photography app with effects . e.g. old images with brown or black and white filter , how can i process UIImageView to change color , brightness and ....
thank you .
Hello,
I'm looking for a good way to antialias a bitmap i'm generating with actionscript3. My goal would be to achieve this processing from scratch.
I read a lot on the subject but the most common algorithm are looking too loud to work properly within my swf, because i'm using a scale2x algorithm to smooth the edges of my shape. It doesn't have to be colorfull, since my shape is black and white !
Any hint would be appreciated, thanks :)
I download menu from http://apycom.com/menus/1-white-smoke.html. When include this menu in my ASP.NET MVC aplication in home page (site.master) menu.js generated link to http://apycom.com. How I remove this link from page?
I've read through the discussion here...
http://stackoverflow.com/questions/273516/how-do-you-implement-a-good-profanity-filter
I've decided to implement a bad word filter using the badlist referenced in that thread.
However I'm thinking about the scunthorpe problem. (see wikipedia I can't post the link, I'm a new user)
Is there a white list of words like scunthorpe and manuscript that I can use to override a black list?
(not interested in discussions about sensorship etc)
I have a file 'matrix.dat':
1 2 3 4 5
5 - 3 4 5
- 4 5 B -
1 B 2 B 3
- 3 2 - 3
I want to plot numbers using palette, '-' using white color and 'B' using black color.
In gnuplot, I use this palette (blue - cyan - green - orange - red):
set palette model HSV functions 0.666*(1-gray), 1, 1
And set '-' as missing data:
set datafile missing "-"
plot 'matrix.dat' matrix with image
Now I can only plot numbers and '-' in correct colors.
Many tutorials focus mainly (or exclusively) on 'how to do XYZ'. There are questions persuading pear SO user share good resources in that category.
I invite you to share good founds that explain 'whys' brilliantly. You know, that very article, white paper, podcast, executive summary, ... that led you to a Aha! moment and you finally saw the woods not just the trees.
i have the following url in a html page-
/delete/Release 1
But when i am trying to print it it comes in following manner-
/delete/Release%201
Can anyone suggest how to convert this hex value of %20 into a white space in PHP.
I get a string from a db, then I remove all the HTML tags, carriage returns and newlines, before I put it in a csv. Only thing is I cant remove the excess white space from between the strings, any ideas?
Thanks,
Joe
I have trouble figuring out how do I load the rest of the data in html. Here is my code:
<?php
$con = mysql_connect("localhost","root","nitoryolai123$%^");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("school", $con);
$result = mysql_query("SELECT * FROM student WHERE IDNO='$_GET['id']'");
?>
<?php while ( $row = mysql_fetch_array($result) ) { ?>
<table class="a" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D3D3D3">
<tr>
<form name="formcheck" method="post" action="updateact.php" onsubmit="return formCheck(this);">
<td>
<table border="0" cellpadding="3" cellspacing="1" bgcolor="">
<tr>
<td colspan="16" height="25" style="background:#5C915C; color:white; border:white 1px solid; text-align: left"><strong><font size="2">Update Students</td>
<tr>
<td width="30" height="35"><font size="2">*I D Number:</td>
<td width="30"><input name="idnum" onkeypress="return isNumberKey(event)" type="text" maxlength="5" id='numbers'/ value="<?php echo $_GET['id']; ?>"></td>
</tr>
<tr>
<td width="30" height="35"><font size="2">*Year:</td>
<td width="30"><input name="yr" onkeypress="return isNumberKey(event)" type="text" maxlength="5" id='numbers'/ value="<?php echo $row["YEAR"]; ?>"></td>
this is the part where I am getting the error:
mysql_select_db("school", $con);
$result = mysql_query("SELECT * FROM student WHERE IDNO='$_GET['id']'");
?
What do you recommend that I could do so that I can also load the ID Numbers corresponding data into the other forms?
Regular expressions and I aren't quite good friends.
So here's the really basic operation i'm trying to do using javascript (jQuery framwork that is).
My calculation function return a number, unformated, and i'd like to separate thousands and hundreds by a white space ' '.
I'm sure it's pretty easy for a regexp regular user... but for me...
Thanks for the help.
for this site:
http://yoursdproperty.com/
do you see how there some extra white space all the way at the top?
how would i expand that image to get rid of that space?
The weird thing is that the flash file that runs the header images has already been changed by me to be the width of the page. Something in the CSS though makes it the old size of 940 wide.
please note that im only interested in making adjustments to the css or html, not flash or javascript