Monthly Archives: APRIL 2011


Google Fonts Support


EzGenerator support Google Web Fonts

Google Web fonts works in most browsers, but they are not correctly displayed inside EzGenerator  (edit and browse mode) if Internet Explorer version 9 (IE9) is installed.

 

to fix this problem, either :

1. enable IE8 browser mode in application options dialog, (drawback is that this will also make new CSS3 features invisible inside ezgenerator)

 

or

 

2. download fonts you are planning to use from Google Web Fonts and install them and install them on your pc.

(in this case, both google fonts and CSS3 features will be displayed inside Ezgenerator)

 

(notice, all above only affects visibility of this features inside EzGenerator, both CSS3 and Google fonts works fine online)


Print  posted by miro   General tags:  Google • Fonts   permalink
0 0

Google Map is not properly displayed in a Tabbed Table (HTabs)


If you use google maps inside Tabbed table (HTabs) in any other tab than the first one, google map is not displayed properly.

 

To make this work, you will have to set one setting manually as workaround:
- go to Tab Settings in EZG
- there is Parameters box
- set gmid:x (where x is the number of the tab with google map)


Print  posted by atanas   General tags:  google • maps • tabs   permalink
5 1

How to change editable image (banner) size


Each editable image is built by 2 or 3 files - banner.jpg (the actual banner image), banner.map (opacity mask file) and banner.src (which is renamed banner.jpg and contains background without image). If banner.src is not present main banner.jpg is used as background. The mask file is grayscale .gif, which means grayscale from 0 to 255. Black (0) means full opacity, white (255) stays for no opacity.

All 3 files have same width and height.

 

You will need to edit banner.jpg in order to change the editable image size:

  • Go to c:\Program Files\EZGenerator\Data\[project]\template\images folder
  • Edit file banner.jpg
  • In case the editable image contains sitename, you will also have to edit two parameters inside site.ini file in c:Program Files/EZGenerator/webtemplates/__shared folder. Open the file, find section [COMPANYTITLEIMAGE] and edit IMAGEWIDTH and IMAGEHEIGHT parameters, which define postion of text upon the image.

We use banner.jpg name here, but it is just an example name. You can have cti_0.jpg, cti_1.jpg or other name.

 

For some templates you have to also edit few styles in Template Editor, CSS tab - #topbanner, #banner and #search.


Print  posted by miro   Templates tags:    permalink
4 1

How to display (another) page inside page


by using jquery/ajax you can put output of any file from your website inside container :

to do this add following code (through insert html)

 

<script type="text/javascript">
$.ajax({url: "documents/myphp.php", success: function(data){$("#output").html(data);}});
</script>

 

 

above code will call documents/myphp.php page and display result inside div with id "output" :

 

 

Some other options available:

 

To make this content load AFTER page is loaded (to speed up the general page load), you can try this:

 

 

<script type="text/javascript">
$(document).ready(function() { $.ajax({url: "documents/myphp.php", success: function(data){$("#output").html(data);}}); });
</script>

 

$(document).ready(... will force the script to be exacuted after page is prepared, so it will not wait for this action to be finished to show the page.

 

To make this content load ON CLICK:

 

 
<script type="text/javascript">
$(document).ready(function() { $("<em><element></em>").click(function(){ $.ajax({url: "documents/myphp.php", success: function(data){$("#output").html(data);}}); }); });
</script>

 

 

 To get only specific element from given page:

 

<script type="text/javascript">
$(document).ready(function(){$.ajax({url: "documents/myphp.php",success: function(data){var dt=$(data).find("<em><element></em>").html(); $("#output").html(dt);}});});
</script>

 

<script type="text/javascript">
$(document).ready(function(){$.ajax({url: "documents/myphp.php",success: function(data){var dt=$(data).find("<em><element></em>").html(); $("#output").html(dt);}});});
</script>

 

<script type="text/javascript">
$(document).ready(function(){$.ajax({url: "documents/myphp.php",success: function(data){var dt=$(data).find("<em><element></em>").html(); $("#output").html(dt);}});});
</script>

 

$("element") can be any normal CSS selector, for example:

  1. $("#output") - this is any element with ID: "output"
  2. $("div #output") - this is DIV with ID: "output"
  3. $(".myClass") - this is any element with class "myClass"
  4. $("input .myClass") - this is an input with class "myClass"

As you can notice - it uses absolutely same element selections as in CSS, so you can check the Internet for more complex selections (by checking CSS or jQuery selector examples).

 

 

 


Print  posted by miro   Jquery/Ajax tags:  Ajax   permalink
3.8 10

Make borders rounded


If you like given template, but don't like the square borders - don't worry! You can fix this.

 

First of all - it depends on the template you're using. Most of them are using images for this.

 

If there are no images for the borders, do following:

 1. Open Template Editor

 2. Open CSS tab.

 3. Find and change the two properties: box-radius and box-shadow

 

For more info, check
http://www.css3.info/preview/rounded-border/
and
http://www.the-art-of-web.com/css/border-radius/

 

Note: These two CSS properties are not new, but they are only supported by IE9 and up (and of course by all other browsers).
Most of the templates are made before IE9 was available, so they were made with images, not with background colors.
That's why in many templates You will have to first replace images with colors to make this work and, of course, it will never work for IE8, IE7 IE6 users. They will see square borders instead.


Print  posted by atanas   Templates tags:  border • template • style • css3   permalink
5 1


[home] [1] 2  [next]1-5 of 8


CATEGORIES



TAGS


RECENT ENTRIES