Solved

Variables in "send to friend' javascript

Posted on 2004-10-30
470 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
Question by:flwebster
    4 Comments
     
    LVL 31

    Assisted Solution

    by:GwynforWeb
    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:
    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
    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
    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Both jQuery and Mootools offer some nice, easy to use scripts. Mootools is best known for their interactive slideshows and jQuery for their menus, but both have many other uses as well.   jQuery is basically a toolkit with many DOM (http://en.wik…
    In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
    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…

    860 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now