Embedding a .swf file.

HTML Source, Tables, CSS, JavaScript, and Embed/Object.

Moderators: BobCP, agsone, Neil Parks, gregtutor, Lem3

Embedding a .swf file.

Postby Macman on Mon Mar 02, 2009 7:57 pm

Hi all,
i am trying to put in a .swf flash file in my home page. The full page code is here:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
</script>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8" />
<title>www.mountaingospel.org</title>
<link rel="stylesheet" type="text/css"
href="style.css" media="screen" />
<!-- Design by Free CSS Templates http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License Name : Professional Description: A two-column, fixed-width design with dark color scheme background. Version : 1.0 Released : 20081230 -->
</head>
<body
style="background-color: rgb(153, 51, 153); color: rgb(0, 0, 0);"
link="#0000ee" alink="#ee0000" vlink="#551a8b">
<div style="background-color: rgb(153, 51, 153);" id="wrapper">
<div style="text-align: center; background-color: rgb(153, 51, 153);"></div>
<div
style="text-align: justify; background-color: rgb(153, 51, 153);"
id="header"><a href="index.html#"><span
style="font-weight: normal;"><span
style="font-weight: bold;"></span></span></a>
<div
style="color: white; font-family: Arial Bold; font-weight: bold;"
id="menu">
<ul>
<li style="background-color: rgb(255, 153, 255);"
class="active"><a
href="http://www.mountaingospel.org/Sub/aboutus.html">About
Us</a></li>
<li style="background-color: rgb(255, 153, 255);"><a
href="http://www.mountaingospel.org/Sub/managersclub.html">Managers
Club</a></li>
<li style="background-color: rgb(255, 153, 255);"><a
href="http://www.mountaingospel.org/Sub/djs.html">DJ's</a></li>
<li style="background-color: rgb(255, 153, 255);"><a
href="http://www.mountaingospel.org/Sub/towerinfocoveragemap.html">Tower
Info</a></li>
<li style="background-color: rgb(255, 153, 255);"><a
href="http://www.mountaingospel.org/Sub/artists.html">Artists</a></li>
<li style="background-color: rgb(255, 153, 255);"><a
href="http://www.mountaingospel.org/Sub/programguide.html">Program
Guide</a></li>
<li style="background-color: rgb(255, 153, 255);"><a
href="http://www.mountaingospel.org/Sub/contactus.html">Contact
Us</a></li>
</ul>
</div>
</div>
<!-- end #header -->
<div id="page"><br />
<br />
<object>
<embed src="www.mountaingospe.org/Pics/mountaingospel.swf"
quality="high" bgcolor="#FFFFFF" loop="false"
name="movie" type="application/x-shockwave-flash"
pluginspage="http://www.moutaingospel.org/go/getflashplayer"
align="" height="60" width="468"> <br />
</object></div>
<!-- end #content -->
<div style="background-color: rgb(255, 204, 255); text-align: left;"
id="sidebar">
<div style="background-color: rgb(153, 51, 153);"
id="sidebar-bgtop"></div>
<div id="sidebar-content">
<div style="background-color: rgb(255, 204, 255);"
id="sidebar-bgbtm">
<ul>
<li id="search">
<h2
style="background-color: rgb(226, 124, 176); font-weight: bold;"><a
class="mozTocH2" name="mozTocId751357"></a>Search</h2>
<form method="get" action="">
<fieldset> <input id="s" name="s" value=""
type="text" /> <input id="x" value="Search"
type="submit" /> </fieldset>
</form>
</li>
</ul>
<ul>
<ul>
<li>&nbsp;<big><span
style="color: rgb(153, 51, 153); font-family: Arial Bold;">
&nbsp; &nbsp; About Us</span></big></li>
</ul>
<ul>
<li><big><span
style="color: rgb(153, 51, 153); font-family: Arial Bold;">&nbsp;
&nbsp; &nbsp; Manager's Club </span></big></li>
</ul>
<li><big><span
style="color: rgb(153, 51, 153); font-family: Arial Bold;">&nbsp;
&nbsp; &nbsp; DJ's</span></big></li>
<ul>
<li><big><span
style="color: rgb(153, 51, 153); font-family: Arial Bold;">&nbsp;
&nbsp; &nbsp; Tower Info/Map</span></big></li>
</ul>
<ul>
<li><big><span
style="color: rgb(153, 51, 153); font-family: Arial Bold;">&nbsp;
&nbsp; &nbsp; Artists</span></big></li>
<li><big><span
style="color: rgb(153, 51, 153); font-family: Arial Bold;">&nbsp;
&nbsp; &nbsp; Program Guide
</span></big></li>
</ul>
<ul>
<li><big><span
style="color: rgb(153, 51, 153); font-family: Arial Bold;">&nbsp;
&nbsp; &nbsp; Contact Us</span></big></li>
</ul>
</ul>
<br />
<br />
<div style="text-align: center;">
<div style="text-align: justify;"></div>
<div ="">
<div
style="width: 180px; height: 150px; background-image: url(http://vortex.accuweather.com/adcbin/netweather_v2/backgrounds/lightning_180x150_bg.jpg); background-repeat: no-repeat; background-color: rgb(0, 0, 0);">
<div style="height: 138px; text-align: center;">
<script
src="http://netweather.accuweather.com/adcbin/netweather_v2/netweatherV2.asp?partner=netweather&amp;tStyle=dark2&amp;logo=1&amp;zipcode=41339&amp;lang=eng&amp;size=8&amp;theme=lightning&amp;metric=0&amp;target=_self"></script></div>
<div
style="text-align: center; font-family: arial,helvetica,verdana,sans-serif; font-size: 10px; line-height: 12px; color: rgb(253, 234, 17);"><a
style="color: rgb(253, 234, 17);"
href="http://www.accuweather.com/us/KY/JACKSON/41339/city-weather-forecast.asp?partner=accuweather&amp;traveler=0">Weather
Forecast</a> | <a style="color: rgb(253, 234, 17);"
href="http://www.accuweather.com/maps-satellite.asp">Weather
Maps</a></div>
</div>
</div>
</div>
<br />
<ul>
<ul>
<li><big><span
style="color: rgb(153, 51, 153); font-family: Arial Bold;">
</span></big></li>
</ul>
</ul>
<ul>
<li>
<h2
style="background-color: rgb(226, 124, 176); font-weight: bold;"><a
class="mozTocH2" name="mozTocId777106"></a>Bible
Search</h2>
<form id="Form2"
action="http://www.biblegateway.com/quicksearch/" method="post">
<table id="Table6"
style="border-color: rgb(102, 0, 0); text-align: left; margin-left: 0px; margin-right: auto; width: 276px; height: 202px;"
bgcolor="#ffffff" border="1" cellpadding="2"
cellspacing="0">
<tbody>
<tr>
<th>
<p align="center">Lookup a word or passage in
the Bible</p>
</th>
</tr>
<tr>
<td>
<p style="margin-bottom: 0px;" align="center"><input
id="Text1" name="quicksearch" type="text" /><br />
<input id="Submit1"
value="Search BibleGateway.com" name="Submit1"
type="submit" />
</p>
<p align="center"><a
title="The Bible in multiple languages, versions, and formats"
href="http://www.biblegateway.com/" target="window"><img
alt="BibleGateway.com"
src="http://www.biblegateway.com/images/logos/bglogo_sm.gif"
border="0" height="44" width="146" /></a>
</p>
</td>
</tr>
</tbody>
</table>
</form>
<!-- End Bible Search Block --></li>
</ul>
</div>
</div>
</div>
<div style="background-color: rgb(153, 51, 153);" id="content">
<br />
<div style="background-color: rgb(255, 204, 255);"
class="post">
<div
style="text-align: center; font-weight: bold; background-color: rgb(226, 124, 177);">
<h1 style="text-align: center; background-color: rgb(226, 124, 176);"
class="title"><span
style="font-family: Brush Script MT Italic;"><big>WELCOME
TO MOUNTAIN GOSPEL</big> </span></h1>
</div>
<div class="entry">
<p><strong></strong><span
style="text-decoration: underline;"><span
style="font-weight: bold;"></span></span>&nbsp;&nbsp;
<img
style="border: 2px solid ; width: 135px; height: 92px; float: left;"
alt="" src="Pics/images.jpeg" hspace="2"
vspace="2" /><big>Welcome to the new and updated
Mountain Gospel
website. We hope &nbsp;that it will be a blessing, and
provide
useful information as you browse around. &nbsp;We are a
5,000 watt
AM, and 6,000 watt FM Christian station located in
southeastern
Kentucky. Please click on our&nbsp;<a
href="http://www.mountaingospel.org/Sub/aboutus.html">about
us</a> page for a
short
history. Thank you for visting our home on the
&nbsp;internet.&nbsp;</big></p>
</div>
<span style="text-decoration: underline;"><span
style="font-weight: bold;"></span></span>
</div>
<div style="background-color: rgb(255, 204, 255);"
class="post">
<div style="text-align: center;"></div>
<h2
style="background-color: rgb(226, 124, 176); font-weight: bold; text-align: center;"
class="title"><big><a class="mozTocH2"
name="mozTocId269136"></a><span
style="font-family: Arial Bold;">News</span></big></h2>
<p class="byline"><small>
</small></p>
<div class="entry"><big><span
style="font-family: Arial Bold;"><br />
Join us for our Spring
sharathon coming up this March 31st through April 3rd 2009!!!
</span></big><big><span
style="font-family: Arial Bold;"></span></big>
<hr style="width: 100%; height: 2px;" /><big><span
style="font-family: Arial Bold;"></span></big>
<div style="text-align: center;"><big><br />
<a href="mailto:studio@mountaingospel.org"><big><big><span
style="color: rgb(204, 51, 204);"><span
style="font-family: Apple Casual;">PRAYER REQUESTS</span></span></big></big></a><br />
<br />
<a href="mailto:studio@mountaingospel.org"><img
style="border: 0px solid ; width: 178px; height: 147px;" alt=""
src="Pics/Praying%20Hands.jpg" /></a><span
style="font-family: Arial Bold;"></span></big><br />
<big><span style="font-family: Arial Bold;"></span></big></div>
</div>
<div class="meta"><br />
<hr style="width: 100%; height: 2px;" /><br />
<br />
Now
there is a new way to donate to Mountain Gospel. You can click on the
link below to donate any amount of your choice through Paypal or Credit
Card options. You can also send your check to Mountain Gospel 1036 Hwy.
541 Jackson, KY 41339:<br />
<br />
<br />
<div style="text-align: center;"></div>
<div style="text-align: center;">
<form action="https://www.paypal.com/cgi-bin/webscr"
method="post"><input name="cmd" value="_s-xclick"
type="hidden" /><input name="hosted_button_id"
value="3326541" type="hidden" /><input
src="https://www.paypal.com/en_US/i/btn/btn_donateCC_LG.gif"
name="submit" alt="" type="image" border="0" /><img
alt="" src="https://www.paypal.com/en_US/i/scr/pixel.gif"
border="0" height="1" width="1" /></form>
</div>
<br />
<br />
<span style="text-align: center; display: block;"><a
href="http://www.freestatscounter.com/"><img
src="http://www.freestatscounter.com//EBAY_HIT_COUNTER_3770208.png"
alt="" /></a><br />
<span style="color: rgb(153, 51, 153);">VISITS</span></span><br />
<br />
<br />
</div>
</div>
</div>
<!-- end #sidebar -->
<!-- end #page -->
<div id="footer">
<p>© 2009. All Rights Reserved Mountain Gospel. Contact: <a
href="mailto:studio@mountaingospel.org">studio@mountaingospel.org&nbsp;</a>
Design by <a href="http://www.freecsstemplates.org/">Free
CSS Templates</a>.</p>
</div>
<!-- end #footer -->
</div>
</body>
</html>

Can somebody help me with what is missing as the object won't display in browse feature. Thanks a million!!!
Macman
 
Posts: 9
Joined: Tue Feb 10, 2009 8:28 pm

Postby agsone on Mon Mar 02, 2009 8:26 pm

The typo in the URL can't be helping ... mountaingospe.org

but correcting that doesn't give any file either. Please check everything is where it is supposed to be.

Posting a link to this page rather than all the code would make life easier.
Last edited by agsone on Mon Mar 02, 2009 8:55 pm, edited 1 time in total.
agsone
Moderator
 
Posts: 1376
Joined: Mon May 21, 2007 7:33 pm
Location: Connecticut, USA
Country: Scotland (sp)

Postby Macman on Mon Mar 02, 2009 8:34 pm

Ok fixed the spelling. Link is up at http://www.mountaingospel.org/Sub/index.html.
Still can't get it to display. Thanks for your help!

*** link fixed by agsone
Macman
 
Posts: 9
Joined: Tue Feb 10, 2009 8:28 pm

Postby gregtutor on Mon Mar 02, 2009 8:44 pm

You need to separate the stop at the end of the URL for it to work.

Your link to the .swf file points to your own hard disk:

<embed src="file:///Users/www.mountaingospel.org/Pics/mountaingospel.swf"

Upload it to your server and ensure the link is made relative.
Greg Chapman
http://www.gregtutor.co.uk
Helping new users of KompoZer - but using BlueGriffon
gregtutor
Moderator
 
Posts: 3713
Joined: Wed Jun 20, 2007 8:25 am
Location: The Norfolk Broads, UK
Country: England (en)

Postby Macman on Mon Mar 02, 2009 9:01 pm

I'm sorry but could you explain what you mean by stop at the end of the URL. I am new at this. Thanks.
Macman
 
Posts: 9
Joined: Tue Feb 10, 2009 8:28 pm

Postby agsone on Mon Mar 02, 2009 9:03 pm

Yes, mountaingospel.swf isn't in the Pics folder on the server.

There's something wrong with the link to the player/plug-in too (are you sure that shouldn't be pointing at macromedia or adobe?) which may be complicating things too.
agsone
Moderator
 
Posts: 1376
Joined: Mon May 21, 2007 7:33 pm
Location: Connecticut, USA
Country: Scotland (sp)

Postby agsone on Mon Mar 02, 2009 9:06 pm

Macman wrote:I'm sorry but could you explain what you mean by stop at the end of the URL. I am new at this. Thanks.


Don't worry, I fixed that - when you post links here it is best to put them inside the URL tags (see the buttons at the top of the reply window) otherwise they tend to get mixed up with the period at the end of sentences and not work.

(Stop = period ... it's a two nations divided by a common language thing)
agsone
Moderator
 
Posts: 1376
Joined: Mon May 21, 2007 7:33 pm
Location: Connecticut, USA
Country: Scotland (sp)

One more thing

Postby Macman on Wed Mar 04, 2009 7:05 pm

Thanks guys! :lol: You really are great. I fixed that problem, but now I have one more problem. I am trying to create a feedback forum. I upload the page and script on the server. I uploaded the script in ASCII mode. You can view the page at http://www.mountaingospel.org/Sub/feedback.html. I am having a problem with the script working right. Any suggestions? Thanks.

**** This link fixed by agsone as well - don't forget to place links in tags ...
Macman
 
Posts: 9
Joined: Tue Feb 10, 2009 8:28 pm

Postby agsone on Wed Mar 04, 2009 7:53 pm

There's a bunch of PHP shrapnel in the footer which can't be helping matters.

Did you edit the feedback.php file before uploading it to reflect the desired target email address? Are you sure you uploaded it to the correct place (I ask as you seem to have a rather complex architecture) and that it didn't get corrupted en route?

Have you checked that your host supports PHP and allows use of the mailto command (many don't on lower cost plans).
agsone
Moderator
 
Posts: 1376
Joined: Mon May 21, 2007 7:33 pm
Location: Connecticut, USA
Country: Scotland (sp)

Postby Macman on Wed Mar 04, 2009 8:06 pm

Here is what I know I did the script via a script builder on [url]thesitewizard.com[/url] website. He said not to edit the script at all, or it wouldn't run right. I have folders on my harddrive that mirror the website, so I think it should have uploaded ok. I do know that he said it had to be upload in ASCII mode or it wouldn't work right, which I did. I havn't checked the server, but it is a paid service, so I think it would support scripts.
Macman
 
Posts: 9
Joined: Tue Feb 10, 2009 8:28 pm

Postby agsone on Wed Mar 04, 2009 9:18 pm

The wizard looks pretty sound and I've thought that site was quite good in the past.

I remain concerned that half the script appears in the middle of the footer of your page - are you sure you cut and pasted everything in the correct place?

Did you create the two other html pages that the script requires?
agsone
Moderator
 
Posts: 1376
Joined: Mon May 21, 2007 7:33 pm
Location: Connecticut, USA
Country: Scotland (sp)

Postby Macman on Tue Mar 10, 2009 2:05 pm

I re-worked everything everything, but I am getting this message when I hit the submit button.

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/sites/site13/web/Sub/feedback.php on line 2

Parse error: parse error, unexpected T_STRING in /home/sites/site13/web/Sub/feedback.php on line 2


Does anyone know what these messages mean, or how to fix them?
Macman
 
Posts: 9
Joined: Tue Feb 10, 2009 8:28 pm

Postby vortigern on Fri Mar 13, 2009 12:39 pm

try these people I find it a great help.

http://www.longtailvideo.com/
vortigern
 
Posts: 86
Joined: Thu Jun 07, 2007 8:47 am


Return to Advanced Design Q & A


Who is online

Users browsing this forum: No registered users and 1 guest