Alternate Row Colors
Attached is my code. Its working fine and produces great results but all the rows are in the same color background (unless mouse-overed).
What would be interesting to see if I can get alternative colors working here...
Can anyone dig in the code (maybe re-juggle) and help me with alternate row colors?
First Row to be #FFFFCC
Second Row to be #CCCC99 when not mouseovered
View Replies
ADVERTISEMENT
I am putting the results from a database in a table using ASP. How can I get alternate colors in each row. (i.e. first row white, second grey, third white, forth grey, etc.)
View Replies
View Related
I'm creating team pages. One page will be used for all teams and I will pass the teamID through the page. I'm using ASP/Access. Each page has the same info.
My question is how to best handle color for each team page? Should I store the HEX # in the database and use them in the CSS. i.e. each team would have a Main color, 2nd color, etc. I have not done this but I'm assuming I can.
View Replies
View Related
Is it possible to make a select list item red based on a condition
View Replies
View Related
I have a report that I render out as PDF. I have two sections in my Details section of the report.
I want to format the background of each section. so one half will be one colour and the other half will be a different colour.
Anyone know how I can do this?My Details section simply consists of labels and database
fields.
View Replies
View Related
In a regular drop down form element like below, is there a way to display
associated colors with each option? Basically, I'd like it to look like
Outlook's Label Control drop down that displays a small color block with
each choice.
<select name="sTime"><option selected>--Select Category--
<OPTION value="WORK">Work Schedule</OPTION>
<OPTION value="Meeting">Meetings</OPTION>
<OPTION value="Other">Other</OPTION></select>
View Replies
View Related
I need to add to my application a ComboBox in whic the user selects color. The comboBox shows the name of the color and the background of the word is in the color that says the word. The names and values of the colors must be read from MSSQL database.
I'm trying to do it with this code but this one has the colors and values given and not read from DB. Code:
View Replies
View Related
I need to get in classical ASP page color of < Button Face object of
MS Windows. Is there any standard function in vbscript?
View Replies
View Related
There is a setting in IE for "Print background colors and images."
I've noticed that without checking this option, a web page will print CSS
lines between table rows, but a background color of say the header won't.
The below style will display the borders in print preview, but won't display
the background color.
Does anyone know if it's possible to force background CSS or HTML colors to
print without having the user change the default in IE to not print
background colors? Code:
View Replies
View Related
I would like a bigger variety of colors to have for fonts in messenger. Anyone know where/how I can do this?
DEVBuilder.org, http://www.DEVBuilder.org
ASP,ASP.NET,VB.NET,PHP,Java,and SQL Support, all in one place.
View Replies
View Related
I have a table with coloured cells. I want to print out the table via IE with the coloured cells. But the outcome of the table does not have the cells coloured.
Are there ways to force out the colouring of the cells in the print outs?Either via php/asp/css or any means.
View Replies
View Related
I found one website say that it will auto alternate the position of advertisements for every 5 minute. My question is how can they do that.If we want to change database like this we have to use internet explorer to call asp script in client side.
Does the webmaster of this website always open that asp page and make it runs all the time?Or can we always 24 Hrs. run the asp script on the Server not Client?
View Replies
View Related
Using HTTP_REFERER I cannot capture the URL when the link is made via a
button:
<input type="button" name="Continue" value="Continue Shopping"
onclick="ContinueShopping('http://mysite/supertest.asp');">
I do not control the script above, it is on an e-commerce site that is very
generic, meant for many users - and is generated by their server code. I
want to capture the URL and with an if/then redirect if the last place
visited was the checkout site.
I need an alternate method of URL capture, rather than HTTP_REFERER.
View Replies
View Related
I know how to alternate table row bgcolor by odd/even method but what I am
trying to acheive is alternate colors by the date value in the database so
that each row with the same date value has the same bgcolor. There maybe 3
red rows for 1st date, then 2 blue rows for 2nd date, then 6 red rows for
next date etc.
View Replies
View Related
I am in need of something like mod_rewrite or an alternate solution.
I have a client, who's website is all HTML files (200+ files) and was previously password protected by javascript only. Anyway, what I need to do is password protect the site using a better solution, which would be a server side scripting obviously.
I am familiar with apache's mod_rewrite and PHP, which would make this problem easy to solve by simply passing the HTML file to a php file, then after neccessary security checks, pass the requested html back to the browser..
The only problem is that its on an ASP server and I have no knowledge of ASP. I am not even 100% positive what kind of server it is, I just know that .asp files work in it and .php does not.
Anyone know of something like mod_rewrite for ASP or an alternate solution that would work in my situation?
View Replies
View Related
In my application I need to read the lines from the text file. I use the following script to do that.It doesn't seem to work because of the Norton Anti virus script blocking. I cannot do anything to Norton so I want to find the alternative way to read the lines from the text file. Quote:
Dim objFSO, objTextFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile(Server.MapPath("ProgrammeDetails"),1,false)
Do While Not objTextFile.AtEndOfStream
Response.Write objTextFile.ReadLine & "<BR>" & vbCrLf
Loop
objTextFile.Close
Set objTextFile = Nothing
Set objFSO = Nothing
View Replies
View Related
how to have table alternate color everytime im using for and next statement..? example:
Code:
<%
for a = 1 to 10
'write td here with alternate color..
next
%>
View Replies
View Related
Example:
Table: FRUIT
column1:
apple
bananas
grapes
column2:
I like apples.
I like bananas.
I like grapes.
I'm trying to have it where the choices from column1 are provided on the form, and based on the what was chosen on the form the corresponding choices from column2 are display on the page.
View Replies
View Related
Is it possible to have, first n number of charectors in a text area in one
colour and the remaining in a different colour? If so how can it be done?
View Replies
View Related
So I have a layer with a repeating table displaying the results of a recordset that are associated with the record being displayed behind the layer in a table. The problem is when there is no record to display it looks weird there. I'm trying to get it so that when that recordset is empty it puts an alternate text in that spot saying no records were found. I tried to get it done by throwing a layer on top of the existing layer whenever the recordset is null. The problem is the code I'm doing it with won't let me have quote marks, which are required for anything more complicated than basic text. Anyone have suggestions? Here is the code I'm using: ...
View Replies
View Related
I have a fullscreen page which needs to incorporate a forward, back, and close button. I have this working fine but after a review, people suggested that the foward and back buttons not be active if they do nothing.
In other words they want them to function exactly like a standard browser's forward and back button. When you open a page in a new window, the back button is grayed out until you move to another page. The forward button is grayed out until you move back a page.
Can this be done?I need to place a grayed out image if there is no back history or forward history. Otherwise, I need an active image with the back and foward action.
View Replies
View Related
I am going to need to offer alternate index pages for each user that visits the site. So, I would have index1.asp and index2.asp. User 1 gets index1, user2 gets index2, user 3 gets index1, user 4 gets index2 and so on. how to do this?
View Replies
View Related
I have a set of web pages on an AD-authenticated web site that are
supposed to allow users to modify their own AD account attributes,
limited of course to things like their email address, URL, etc. I was
hoping to connect to LDAP using secure authentication as described on
a few tech web pages, and the connection works fine but when it's time
to commit the changes with .SetInfo, the script fails with: Code:
View Replies
View Related
Does anyone know of any easy way to have shading on alternative rows in a table that loops through the rows in a recordset?
View Replies
View Related
I have a page that uploads an xml file and reads it into a SQL database. The
page is transactional and aborts if there are any anomalies in the xml.
My problem is that the if I repeat an identical import the transaction
succeeds the first time and then fails the next time. This pattern continues
with subsequent repeats. I have removed all of the ObjectContext.setAbort()
calls but still the onTransactionAbort() sub is called.
View Replies
View Related
I am creating a dynamic ASP VBScript page, which gets data from an Access database.
In the database, there is a field which holds a URL to an image. I can get the image to display fine, but where there is no file that matches the URL (i.e. a missing image) I want to display an alternative, default image (e.g. one that says "Awaiting Image"). The field is never blank, but the image file may not exist for all records in the database.
I think what I am trying to get to is the following:
If file exists (using URL from database to get location of image file) then
display image using the url from the database as the image source
else
display default image - hardcoded in program
endif
I have had a go and come up with the attached but I get an error with my if statement...
View Replies
View Related