Positiong a script in CCHTMLE 08

User 548038 Photo


Registered User
12 posts

Hi,

Been using CCHTMLE 08 and love it.

I've got this script I'm adding to one of the pages I'm building for my website:

<script type="text/javascript">
visahq_widget_nacionality_country = "214";
visahq_widget_destination_country = "201";
visahq_widget_background_color = "#69695c";
visahq_widget_text_color = "#dedeca";
visahq_widget_border_color = "#69695c";
visahq_widget_title_text_color = "#dedeca";
visahq_widget_title_background_color = "#69695c";
</script>
<script src="http://www.visahq.com/scripts/widget_v2.js" type="text/javascript"></script>


It's a Visa requirements by citizenship and destination script that sources off of a site I'm an affiliate of.

Anyway, I paste it into the code editor and then go to visual editor and of course it doesnt show up, but id DOES when i go to preview.

I tried replacing the "script" tag with an "object" tag, which makes it visible in the visual editor, I then unlock and move it to where i want, then go back to code eidtor and replace the "object" tags with the "script" tags and then go to preview and it doesn't move to where i tried to move it.


Is there a way to do this visualy, OR is there a way to at least code in the positions I want it to appear on the page?


Thanks for any help!


A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
User 355448 Photo


Ambassador
3,144 posts

If you are programming code, it is recommended that you NOT shift back and forth between the code and visual editor. Shifting from code to visual will result in code changes.

Using the code editor, you can place things where you want them using CSS, and can be very specific as to the exact location.

I typically write my code from top to bottom. I insert my mast code, and then my navigation horizontal menu, then the content and finally the footer. Inside the content, I use the CSS float to adjust for columns if I want them. To position things exactly, I use margins and padding.
User 548038 Photo


Registered User
12 posts

Thanks for the heads up.

The solution I found was using a <div> (divider) tag and positioning the script that way.

Doont get me started on CSS..... oops too late :P

CSS isn't all that it's hyped up to be.

For all it's cracked up to be its a technological failure. Browsers just aren't consistent in how they use CSS technology. And one thing you need is predictability and consistency. Design a large and complex site with CSS and you'll find popular browsers interpret it differently .

CSS is 'markup centric' not 'design centric'. Personally I think designers should be spending more time designing sites and not fiddling with markup tags and browser compatibility. EVERY CSS design tool forces users to go into source code mode to create an attractive modern site.

It's the inherent complexities in cascading that causes the browsers to screw up the CSS in the first place. In theory it should save bandwidth, but instead we get bloated code.

Good design tools start with the design, NOT the markup. Heck Aldus page maker had better placement, design and font tools and that was 10 plus years ago!

I mean how many ways is there to make rounded corners for god sake! Even MS Word 97 could do that! But getting them to work in a standard way in the CSS world seems to be all but impossible.

CSS MAKES WEB PAGES LOAD SLOWLY. CSS has to process a large number of rules before it can figure out where things are supposed to go. After these rules are interpreted this data is thrown out and each and every browser that opens up the web-page has to re-interpret the data.

Even when you’re on a fast connection the browser can’t figure out where to place objects until the entire web-page has finished loading. Secondly this interpretation is very prone to errors.

I want my pages to load quickley across the widest array of browser versions. My customers come from and have to access my website from places where the connection may be spotty or the browser may not be up to date.

Good O'L HTML is the longest running standard so thats what I know will have the best chance of working.

While your muddling with CSS I'm actually designing the site.

Oh you can change fonts and layout quicker?

Well you shouldn't have to if you designed your site well in the first place.

rant over. :D
A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila.
User 325189 Photo


Registered User
22 posts

Another way is to use tables.
<table border="0" width=180 bgcolor="#000000" border="0" cellpadding="0" bordercolor="#000000" cellspacing="0">
<tr><!-- Row 1 -->
<td><script >
</script></td><!-- Col 1 -->
<td><script >
</script></td><!-- Col 2 -->
<td><script >
</script>
</td><!-- Col 3 -->
<td><script >
</script>
</td><!-- Col 4 -->
</tr>
</table>

Where you see the <script> tag just insert your script here.
I find this is easy to do. And you can have tables of just one row and column.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.