Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Variables in "send to friend' javascript

Posted on 2004-10-30
4
Medium Priority
?
472 Views
Last Modified: 2011-10-03
Hi,
I'm trying  to make the font on this script arial, size 10 point, and the script font bright yellow.  Nothign I do seems to work.  Where to I make the changes?  Thanks

<div align="center"> <font face="Verdana"
color="#0000FF"> <SCRIPT LANGUAGE="<B style="color:black;background-color:#ffff66">JavaScript</B>"> <!-- Begin document.write('<b>Send
<A CLASS="contact" HREF=\"mailto:\?body\=Take a look at this page I
found, ' + document.title + '. You can see this page at: ' + window.location
+ '\" onMouseOver="window.status=\'Send your friends e-mail about this
page\'; return true" TITLE="Send your friends e-mail about this page">this
page<\/A> to a friend</b>'); // End --> </script> </font> </div>

my table background is red and the font is arial 10, bold bright yellow.  (<font color="#ffff00" size="2">)

Thanks for your help!!!

0
Comment
Question by:flwebster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
4 Comments
 
LVL 31

Assisted Solution

by:GwynforWeb
GwynforWeb earned 2000 total points
ID: 12455830
try this

<body>
<font face="Verdana" color="#0000FF"><script LANGUAGE="JavaScript">
<!-- Begin
document.write('<b>Send <A CLASS="contact" HREF=\"mailto:\?body\=Take a look at this page I found, ' + document.title + '. You can see this page at: ' + window.location+ '\" onMouseOver="window.status=\'Send your friends e-mail about thispage\'; return true" TITLE=" Send your friends e-mail about this page">thispage<\/A> to a friend</b>');
 // End -->
</script>
</font>
0
 
LVL 31

Accepted Solution

by:
GwynforWeb earned 2000 total points
ID: 12455839
I am not sure what you want tobe yellow and what you want to be blue in the printed statement below

"Send this page to a friend"
0
 
LVL 31

Expert Comment

by:GwynforWeb
ID: 12455850
is this what you want

<font color="#0000FF" size="2" face="Verdana">
<script LANGUAGE="JavaScript">
<!-- Begin
document.write('<b>Send <A  style=\'color:yellow\' HREF=\"mailto:\?body\=Take a look at this page I found, ' + document.title + '. You can see this page at: ' + window.location+ '\" onMouseOver="window.status=\'Send your friends e-mail about thispage\'; return true" TITLE=" Send your friends e-mail about this page">thispage<\/A> to a friend</b>');
 // End -->
</script>
</font>
0
 
LVL 31

Expert Comment

by:GwynforWeb
ID: 12455919
some variations, they might help

all yellow

<font color="#0000FF" size="2" face="Verdana">
Some other text<p>
<font color="#FFFF00" size="2" face="Verdana">
<script LANGUAGE="JavaScript">
<!-- Begin
  document.write('<b>Send <A  style=\'color:yellow\' HREF=\"mailto:\?body\=Take a look at this page I found, ' + document.title + '. You can see this page at: ' + window.location+ '\" onMouseOver="window.status=\'Send your friends e-mail about thispage\'; return true" TITLE=" Send your friends e-mail about this page">thispage<\/A> to a friend</b>');
 // End -->
</script>
</font>
</font>

all yellow but link blue

<font color="#0000FF" size="2" face="Verdana">
<p>Some other text</p>
<p><font color="#FFFF00" size="2" face="Verdana"><script LANGUAGE="JavaScript">
<!-- Begin
  document.write('<b>Send <A  style=\'color:blue\' HREF=\"mailto:\?body\=Take a look at this page I found, ' + document.title + '. You can see this page at: ' + window.location+ '\" onMouseOver="window.status=\'Send your friends e-mail about thispage\'; return true" TITLE=" Send your friends e-mail about this page">thispage<\/A> to a friend</b>');
 // End -->
</script>
</font>
</font>
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question