[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Variables in "send to friend' javascript

Posted on 2004-10-30
4
Medium Priority
?
477 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
  • 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

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

Question has a verified solution.

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

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

612 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