Enter code (Full Version)

All Forums >> [Web Development] >> Dreamweaver Help



Message


dcr2 -> Enter code (2/6/2008 9:23:52)

How do I enter the code for a banner in DW MX2004 without it being displayed in Design View?

Thanks




swoosh -> RE: Enter code (2/6/2008 9:32:05)

Welcome to Outfront!

Are you looking to enter the code without the banner showing up in design (for whatever reason)? OR do you want the actual code to be displayed in design view and not the actual banner, for instructional purposes maybe?




dcr2 -> RE: Enter code (2/6/2008 10:03:53)

Hi,
The problem I have is that the banner is also shown in Design view, but in an unformated layout. I would like it not to be shown at all, just a marker to indicate its position.




swoosh -> RE: Enter code (2/6/2008 10:27:23)

Using an HTML Comment Tag should do the trick. <!-- Comment-->. Put your banner code within this tag.

Example:

<!--banner code here-->

Is that what your looking for?




dcr2 -> RE: Enter code (2/6/2008 11:06:59)

Hi,

Tried that. The banner not showning in Design View (which is what I want), the problem though is that the banner is not showing in browser view either (which I do want).




d a v e -> RE: Enter code (2/6/2008 14:14:33)

how about an include?

anyway why don't you want to see it design view??




dcr2 -> RE: Enter code (2/6/2008 16:58:11)

Hi Dave,

Not too sure what you mean by 'include', could you explain?
In Design view the banner appears as unformatted text, and takes up half a page.




treetopsranch -> RE: Enter code (2/6/2008 19:22:59)

Is your banner a graphic or is it scrolling text or what?




d a v e -> RE: Enter code (2/7/2008 2:44:15)

google for something like "using includes in dreamweaver" unless anyone has a specific resource that they recommend? e.g. http://www.dwfaq.com/Tutorials/Dynamic/SSIs.asp

can you post a screenshot of what the code looks like? or a link to the page? or then use the code button just above the you reply box (it looks like this
<%
and paste in the code...




dcr2 -> RE: Enter code (2/7/2008 7:32:59)

Hi,
Thanks for your reply and for your efforts.
The banner can be seen on http://www.thediyworld.co.uk/ it's the Compare OnLine banner next to the bottom on the home page.
I should note that I have upgraded to DW, and in the process of re-doing this site with it, so the current site was made using another software package (WebExpress). BTW, WebExpress does what I’m trying to achieve automatically, but seems in a way DW does not accept.




Tailslide -> RE: Enter code (2/8/2008 3:52:58)

It's got a link to a stylesheet in the middle of the body:

<style type="text/css">
@import "http://www.compare-online.co.uk/Banners/Resources/colBanners.css";
</style>


You need to move that to the document head for a start.

Also from a semantics and search engine point of view - the main heading on the page is the compare online advert when it should be "The dIY World" instead. You should get rid of all that inline styling around your real heading and stick a H1 tag around it - then style the H1 tag via the stylesheet. You should also remove the h1 tag (and probably the H1 tags too) in the compare online advert - replacing them with h3 and h4 in the markup and in the compare online stylesheet - reason being that you should only have 1 H1 tag on a page - the page heading. It dilutes the importance of the heading as far as search engines go.




dcr2 -> RE: Enter code (2/8/2008 17:26:36)

Hi,
Moved that code between head tags, but didn’t seem to make any changes, perhaps I'm not doing it as you suggest, to be honest my HTML is not up to much.
I should make it clear that the link that I posted does not require changing as this is doing exactly what I want, the problem occurs when I apply the same into the code in DW.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
6.640625E-02