| | |
template with editable <body> tag
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2007
Posts: 20
Reputation:
Solved Threads: 0
Is it posible to have the body tag in an editable region of a template. I want to PreLoad images on some of the pages and not others.
I've tried
<body
<!-- TemplateBeginEditable name="body_tag" -->
<!-- TemplateEndEditable -->
>
but get an error message.
Alternatively, can I preload images in another area of the body OR head - and how would I do that?
I've tried
<body
<!-- TemplateBeginEditable name="body_tag" -->
<!-- TemplateEndEditable -->
>
but get an error message.
Alternatively, can I preload images in another area of the body OR head - and how would I do that?
•
•
Join Date: Oct 2007
Posts: 20
Reputation:
Solved Threads: 0
A template is a web page that has editable and non-editable regions. The template isn't actually posted on the web, but it is used to create other pages.
Typically, many pages in a web site will use the same template. This forces a common structure for those pages. Moreover, you can change the template and it automatically changes all the pages that are based on that template.
Templates are normally used when you let a client or some other non-web designer person update/edit their web site with Adobe's Contribute. I think Contribute is a good product that meets a very real need. Few people can create a web site but almost all can update/edit their web site with Contribute.
Typically, many pages in a web site will use the same template. This forces a common structure for those pages. Moreover, you can change the template and it automatically changes all the pages that are based on that template.
Templates are normally used when you let a client or some other non-web designer person update/edit their web site with Adobe's Contribute. I think Contribute is a good product that meets a very real need. Few people can create a web site but almost all can update/edit their web site with Contribute.
•
•
Join Date: Oct 2007
Posts: 20
Reputation:
Solved Threads: 0
I'm not sure how that would be done with CSS.
My goal was to preLoad the images so they would be ready for a quick image swap on a mouse roll-over. Perhaps this is an old-fashioned concept that is not needed with faster download speeds.
I solved my problem by keeping the onLoad event within the body tag, which is, of course, in a non-editable region.
Then, I include the LoadAllFiles() function within the editableRegion of all pages. For those pages where I want to preload the images, I include the following:
If the web page has no files that I want to preload I merely insert:
My goal was to preLoad the images so they would be ready for a quick image swap on a mouse roll-over. Perhaps this is an old-fashioned concept that is not needed with faster download speeds.
I solved my problem by keeping the onLoad event within the body tag, which is, of course, in a non-editable region.
<body onLoad="LoadAllFiles()"> Then, I include the LoadAllFiles() function within the editableRegion of all pages. For those pages where I want to preload the images, I include the following:
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_preloadimages() { //v3.0
[snip some standard code]
function LoadAllFiles() {
MM_preloadimages('../images/Photos/1.jpg','../images/Photos/2.jpg','../images/Photos/3.jpg','../images/Photos/4.jpg', '../images/Photos/5.jpg','../images/Photos/6.jpg','../images/Photos/7.jpg','../images/Photos/8.jpg','../images/Photos/9.jpg','../images/Photos/10.jpg','../images/Photos/11.jpg','../images/Photos/12.jpg','../images/Photos/13.jpg','../images/Photos/14.jpg')
}
//-->
</script>If the web page has no files that I want to preload I merely insert:
<script language="JavaScript" type="text/JavaScript">
<!--
function LoadAllFiles() {}
//-->
</script>![]() |
Similar Threads
- Javascript image slider issue (JavaScript / DHTML / AJAX)
Other Threads in the HTML and CSS Forum
- Previous Thread: Background Image Problem
- Next Thread: i am new
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






