473,607 Members | 2,674 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing background colour in a link?

Dear Experts!

I'd be grateful if you can help me with this.

I'm having an inline frame which points to 'www.externalsi te.com'. The
page which contains the inline frame has an orange background, the
pages at 'www.externalsi te.com' have a white background.

Can I change the background of 'www.externalsi te.com' to mach the
background of the inline frame page upon loading?

Tried something like this but 'www.externalsi te.com' stays white:

<iframe name="I1" src="www.extern alsite.com" document.bgColo r=#FFCC09>
Your browser does not support inline frames or is currently configured
not to display inline frames.</iframe>

Thanks very much for your efforts!

Kind Regards,

Martin
Jul 20 '05 #1
2 2655
Hi. Thank you very much for your reply!

Just to clarify - Do I need the permission from www.externalsite.com
when I use a stylesheet to change the background colour? What are the
basic legal rules when you can and when not link to another site?

Sorry, I'm not a professional webdesigner so I am grateful nfor your
help!

Kind Regards,

Martin

Philipp Lenssen <ph************ *@bb-k.com> wrote in message news:<MP******* *************** **@News.Individ ual.DE>...
In article <72************ ************@po sting.google.co m>,
th************@ hotmail.com says...
Dear Experts!

I'd be grateful if you can help me with this.

I'm having an inline frame which points to 'www.externalsi te.com'. The
page which contains the inline frame has an orange background, the
pages at 'www.externalsi te.com' have a white background.

Can I change the background of 'www.externalsi te.com' to mach the
background of the inline frame page upon loading?


You can include a user-stylesheet in your browser and override the body-
background-color.
If you want to re-publish the site for others, you should ask the site-
owner to do the changes. Or if you're allowed to use the material, build
a server-side script (e.g. using PHP), grab the content, and reformat it
(which would also get rid of the inline-frame).
Tried something like this but 'www.externalsi te.com' stays white:

<iframe name="I1" src="www.extern alsite.com" document.bgColo r=#FFCC09>
Your browser does not support inline frames or is currently configured
not to display inline frames.</iframe>


This alternative text is not the best; add the link to the document.

It might help though if you explain what it is you're trying to achieve.
Maybe there's better solutions.

Jul 20 '05 #2
In article <72************ **************@ posting.google. com>,
th************@ hotmail.com says...
(...)
Just to clarify - Do I need the permission from www.externalsite.com
when I use a stylesheet to change the background colour?
Aside from any permission, you cannot simply change their stylesheet.
What are the
basic legal rules when you can and when not link to another site?


Some sites disallow deep linking (misunderstandi ng how the web works).
Others object to framing, which is reasonable. The question is what you
want to do, and asking the other site-owner would help know if it's OK
with them.
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9330
by: John D | last post by:
I am trying to change the background colour of either a div or a textarea with javascript, but am having problems. I have passed a hex colour value in the variable hval, and with the following code can change the background colour of the whole page, but only (now) want to change either a textarea of a form or a div. I'm stuck. document.bgColor = hval;
14
5194
by: Holden Caulfield | last post by:
Hi there, for IE 5+ I need to be able to change certain TD tags´ background colors, and can´t figure out how to do it... For instance, in a table with 25 cells, somewhere between 5 or 10 will need the bgcolor to change at the same time when a user clicks a button. Right now only one changes when I use something like this... document.getElementById(´cellchange´).style.backgroundColor = "FFFFFF" ** (Note, this is not the EXACT code, I...
4
2474
by: Dj Frenzy | last post by:
Hi, I know how to use javascript to change a background image to another background image, and how to change a background colour to another background colour. Is there a way to change an image to a backgound colour? I have a table with a background that has a picture. When the user hovers over the picture I want the background to change to the background colour of the rest of the page, as if to make the picture disappear.
1
1348
by: xtrmntr: a northern soul | last post by:
alright there, i'm pretty much throwing myself on everyone here's mercy, as i'm struggling to even articulate what i mean, never mind create the behaviour i want. i've a website with a navigational frame on the bottom, and the main site taking up the other 90% of the window. each page has got a different background colour, where as the navigational frame obviously stays the same.
4
1961
by: david.graham18 | last post by:
Hi I spotted some nice code to change the background colour of a web page to one of four different colours at random but I can't find it now! The method was to select a number at random from 1 to 4 by using the rnd() function and then dividing by modulus 4. The result was then used to select a cell in a 4 cell array which was holding a different colour in each cell of the array. I would like to have this code but lack the knowledge to...
25
4318
by: madsgormlarsen | last post by:
Hi I am making a tab menu with css, and the tabs changes color depending on wich tab is current. 1. I could load a different css file for each tab/color. 2. I could do some inline css only for the color of the tabs. (which I would then change with trough php). 3. I could make a different class for each color, and change the class of the tab.
2
1181
by: Colin McGuire | last post by:
Hi, according to the on-line documentation you can change the background colour of, for example a button, to Gray as shown below. Dim b as Button b.BackColor=Color.Gray If I programmatically want to change the background colour of a button to the default background colour for controls, it may or may not be grey (depending on the preferences, eg Windows Classic style vs. Windows XP style or a customised style may have changed the...
5
2005
by: kaisersose1995 | last post by:
Hi, I am trying to add some visual confirmation to a continous form, to let the user know if a stored date on the form has passed. I have managed to set the background colour using a simple IF statement comparing the stored date with the Date() control and the .backcolour vb control. however once the background colour of the field has been set, it sets the colour for every line on the form. Is there anyway of making just specific cells on...
3
2595
by: bettyboo | last post by:
Hi I'm new to the forum and also a VERY new user of Access to develop databases. I'm building a DB for a driving instructor acquaintance, and he wants a button on the pupil data entry form which he can click to flag a pupil as "Do Not Rebook" (i.e. if they're a non-payer or something). Upon clicking the button, he wants a value to be recorded in the appropriate field in the table (so we can report on it later) and he also wants the...
0
8049
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8463
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8128
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6803
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5471
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3953
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2461
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1316
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.