• Welcome Visitor! Please take a few seconds and Register for our forum. Even if you don't want to post, you can still 'Like' and react to posts.

Need html code help....


Jim Oaks

Just some guy with a website
Administrator
Founder / Site Owner
Supporting Vendor
Article Contributor
TRS Banner 2010-2011
TRS Banner 2012-2015
TRS 20th Anniversary
VAGABOND
TRS Event Participant
GMRS Radio License
TRS 25th Anniversary
Joined
Aug 2, 2000
Messages
15,086
Age
57
City
Nocona
State - Country
TX - USA
Other
2005 Jaguar XJ8
Vehicle Year
2021
Vehicle
Ford Ranger
Drive
4WD
Engine
2.3 EcoBoost
Transmission
Automatic
Total Lift
3.5-inches
Tire Size
295/70/17
OK. I've never seen anything like this before.

The index page for the site has an embeded video player on it. I redesigned it with some javascript that allows feeds to be displayed.

Now, everytime I save the page, the /embed code at the end of the embed line disappears causing the video to not show up.

I have no freakin idea what's causing that part of the code to disappear.

Any of you programs have any ideas?
 
Damn. I just removed all the javascript and css I added to the page (copy of it) and it still removes the /embed tag when I save it. WTH?
 
To me it sounds like the player coding is incorrect does it disappear completely? like the entire feed coding line?

Double check the player coding and the feed coding and re write if needed.

Jim u can pm me the blurb of code and ill take a look at it. as well as links to the player and feed. ill see what i can do.
 
Last edited:
If you're using an online CMS, it could be stripping it out in the WYSIWYG editor that they choose for some reason. My first thoughts would be bad formatting - like unclosed quote, tag, etc. Couldn't tell you w/o seeing it, post the code.

Pete
 
Here's the code:

Code:
<embed src="http://www.powertvonline.com/xp2/dmlkZW8udGhlcmFuZ2Vyc3RhdGlvbi5jb20/8940/1082/off" type="application/x-shockwave-flash" width="275" height="222"></embed>

When I save the page, the < /embed > code disappears, but the rest of it is still there.

I've got (3) javascripts running on the page to load feeds as well, but they work.
 
Last edited:
Are you saying that it's broken on the front of this site right now? The source I am seeing for the video is exactly what is being posted with the closing tag.

Not too sure if <embed /> is supposed to be the valid syntax, it would be doing the right thing by removing the closing tag that if this is the case in XHTML.

Does this make any difference?

Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="275" height="222" id="trs">
    <param name="movie" value="http://www.powertvonline.com/xp2/dmlkZW8udGhlcmFuZ2Vyc3RhdGlvbi5jb20/8940/1082/off">
    <param name="quality" value="high">
    <param name="bgcolor" value="#ffffff">
    <embed src="http://www.powertvonline.com/xp2/dmlkZW8udGhlcmFuZ2Vyc3RhdGlvbi5jb20/8940/1082/off" type="application/x-shockwave-flash" width="275" height="222"></embed>
</object>
 
Last night sometimes I would see the video on the main page, and sometimes I wouldn't.

I replaced my code with your code. Now, I can actually see the player displayed in Front Page instead of the symbol for the plug in, but I'm not seeing it being displayed on the site.
 
Last night sometimes I would see the video on the main page, and sometimes I wouldn't.

I replaced my code with your code. Now, I can actually see the player displayed in Front Page instead of the symbol for the plug in, but I'm not seeing it being displayed on the site.

It's hard to say. I copied the html into a file on my local hard drive and it wouldn't show the video in IE 8. I moved the DOCTYPE at the top of the page to where it's recommended to be, and it started showing everytime. However, it still didn't work in IE 6. I gutted the page and it seems to work once a lot of the scripts are taken out, it could be that something is walking over each other in the same namespace. Pretty strange. I suspect the video is there, but it's getting tucked in a place that it cannot be seen (z-index issue?). I use FireBug in FireFox to help diagnose, and I do have something for IE, but it's not as good and I couldn't find anything that pointing to anything specifically. DOCTYPE makes a HUGE difference on how the page is rendered.

The DOCTYPE is usually the first tag on the page, but it did completely change the way the layout looks. FireFox made no difference.
http://www.w3.org/TR/REC-html40/struct/global.html

Pete
 
Screw it. I replaced it with a youtube video. Works fine. Kick ass video too!
 

Sponsored Ad


Sponsored Ad

TRS Events

Member & Vendor Upgrades

For a small yearly donation, you can support this forum and receive a 'Supporting Member' banner, or become a 'Supporting Vendor' and promote your products here. Click the banner to find out how.

Recently Featured

Want to see your truck here? Share your photos and details in the forum.

Ranger Adventure Video

TRS Merchandise

Follow TRS On Instagram

TRS Sponsors


Sponsored Ad


Sponsored Ad


Amazon Deals

Sponsored Ad

Back
Top