/    Sign up×
Community /Pin to ProfileBookmark

how to add font color

Hi there

How do I add font color to the lines
I want them to be white #FFFFFF

<script language=”JavaScript”>
<!–
// This is the function that will open the
// new window when the mouse is moved over the link
function open_new_window()
{
new_window = open(“”,”hoverwindow”,”width=400,height=300,left=10,top=10″);

// open new document
new_window.document.open();

// Text of the new document
// Replace your ” with ‘ or ” or your document.write statements will fail
new_window.document.write(“<html><title>Dial Up Numbers</title>”);
new_window.document.write(“<body bgcolor=”#8BA927″>”);
new_window.document.write(“<p><strong>Dial Up Numbers</strong></p> “);
new_window.document.write(“Ottawa and Surrounding Region “);
new_window.document.write(“<br>”);
new_window.document.write(“(613)722-0447”);
new_window.document.write(“<br>”);
new_window.document.write(“Peterborough Region”);
new_window.document.write(“<br>”)
new_window.document.write(“(905) 742-1214 / (905) 748-4260 “);
new_window.document.write(“<br>”);
new_window.document.write(“Lindsay Region”);
new_window.document.write(“<br>”);
new_window.document.write(“(705) 328-9875”);
new_window.document.write(“<br>”);
new_window.document.write(“Oshawa Region”);
new_window.document.write(“<br>”);
new_window.document.write(“(905) 579-7470 “);
new_window.document.write(“<br>”);
new_window.document.write(“Cornwall Region “);
new_window.document.write(“<br>”);
new_window.document.write(“(613) 932-5329”);
new_window.document.write(“<br>”);
new_window.document.write(“DNS Numbers “);
new_window.document.write(“<br>”);
new_window.document.write(“Primary 72.1.192.22 “);
new_window.document.write(“Secondary 72.1.92.22”);
new_window.document.write(“</body></html>”);

// close the document
new_window.document.close();
}

// This is the function that will close the
// new window when the mouse is moved off the link
function close_window()
{
new_window.close();
}

// –>
</script>

to post a comment
JavaScript

10 Comments(s)

Copy linkTweet thisAlerts:
@slyandjenauthorMar 06.2006 — Hi is it possible to add a table in the pop up I have list above too!!
Copy linkTweet thisAlerts:
@slyandjenauthorMar 06.2006 — is it possible to have a pop up windows and instead of words it can pop up a gif file instead of the ugly font box I have listed in the script above.

having a gif file would be better for me instead of the manual lines
Copy linkTweet thisAlerts:
@UmeshMar 06.2006 — Hi

In palce of [B]<br>[/B] in your code please write [B]<hr color='#FFFFFF' >[/B].
Copy linkTweet thisAlerts:
@UmeshMar 06.2006 — Yeah, U can do with GIF also, but i think this way is fine, u can give font of your choice. This is a better way.
Copy linkTweet thisAlerts:
@slyandjenauthorMar 06.2006 — hi there

hr color='#FFFFFF' can you just gimme a line with this hr color='#FFFFFF' in it

like an example
Copy linkTweet thisAlerts:
@UmeshMar 06.2006 — Well ! trie this updated code.



<script language="JavaScript">

<!--

// This is the function that will open the

// new window when the mouse is moved over the link

function open_new_window()

{

new_window = open("","hoverwindow","width=400,height=300,left=10,top=10");

// open new document

new_window.document.open();

// Text of the new document

// Replace your " with ' or " or your document.write statements will fail

new_window.document.write("<html><title>Dial Up Numbers</title>");

new_window.document.write("<body style='font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px' bgcolor="#8BA927">");

new_window.document.write("<p><strong>Dial Up Numbers</strong></p> ");

new_window.document.write("Ottawa and Surrounding Region ");

new_window.document.write("<hr color='#FFFFFF'>");

new_window.document.write("(613)722-0447");

new_window.document.write("<hr color='#FFFFFF'>");

new_window.document.write("Peterborough Region");

new_window.document.write("<hr color='#FFFFFF'>")

new_window.document.write("(905) 742-1214 / (905) 748-4260 ");

new_window.document.write("<hr color='#FFFFFF'>");

new_window.document.write("Lindsay Region");

new_window.document.write("<hr color='#FFFFFF'>");

new_window.document.write("(705) 328-9875");

new_window.document.write("<hr color='#FFFFFF'>");

new_window.document.write("Oshawa Region");

new_window.document.write("<hr color='#FFFFFF'>");

new_window.document.write("(905) 579-7470 ");

new_window.document.write("<hr color='#FFFFFF'>");

new_window.document.write("Cornwall Region ");

new_window.document.write("<hr color='#FFFFFF'>");

new_window.document.write("(613) 932-5329");

new_window.document.write("<hr color='#FFFFFF'>");

new_window.document.write("DNS Numbers ");

new_window.document.write("<hr color='#FFFFFF'>");

new_window.document.write("Primary 72.1.192.22 ");

new_window.document.write("Secondary 72.1.92.22");

new_window.document.write("</body></html>");

// close the document

new_window.document.close();

}

// This is the function that will close the

// new window when the mouse is moved off the link

function close_window()

{

new_window.close();

}

// -->

</script>

[/QUOTE]
Copy linkTweet thisAlerts:
@UmeshMar 06.2006 — Hi

Increase hight and width of new screen to disply all information correctly.

See this line :

new_window = open("","hoverwindow","width=[B]500[/B],height=[B]430[/B],left=10,top=10");
Copy linkTweet thisAlerts:
@slyandjenauthorMar 06.2006 — thank you very much yahoo
Copy linkTweet thisAlerts:
@slyandjenauthorMar 06.2006 — I pasted the script and the fonts are black and I get white bars at each rows
Copy linkTweet thisAlerts:
@UmeshMar 07.2006 — So, do u need any change?
×

Success!

Help @slyandjen spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...