MySQL Workbench error : font Trebuchet MS does not support style regular
Lately i updated my MYSQL GUI TOOL fron MySQL Administrator and MySQL Query Browser to MySQL Workbench.
Pretty nice tool i may add but i got a fatal error:
font "Trebuchet MS" does not support style "regular"
Hmm...thats an easy fix, all you have tot do is install the required font and you ar good to go.
Here is the missing font: Font Trebuchet MS
Submit using an input image type: fix for IE
Well if you try login with an input image type you will have a small problem in IE: it wont work.
HTML :
<input name="submit" src="path/to/image.gif" type="image" value="Submit"
PHP
// start processing on submit or submit_x
if (isset($_POST['submit']) || isset($_POST['submit_x'])) {
// run code here
}
This should fix the problem in IE. Just add isset($_POST['submit_x'] in the conditional
What is web 2.0
Even if we use it every day not all of us know what Web 2.0
So What is web 2.0 ?
Markus Angermeier created a tag cloud with some of the themes of web 2.0
Ajax is web 2.0 , Rss is web 2.0 , adsense is web 2.0 , flicker is web 2.0 . Web 2.0 are those aplications that interacts with the user .
Redirect Scripts
Simple HTML redirect script
====Begin==========
<script>
location = "http://www.daniel-ionica.net/blog/index.php";
</script>
=====End==========
With this script your users probably wont even see the redirect
Alert redirect
==Begin============
<html>
<script>
alert("This page has been moved to a new location... click OK to be redirected?");
location = "http://www.daniel-ionica.net/blog/index.php";
</script>
</html>
===End===========
Confirmed redirect
====Begin========
<html>
<script>
if(confirm("This page has been moved to a new location... would you like to be redirected?"))
{
location = "http://www.daniel-ionica.net/blog/index.php";
}
else
{
history.back();
}
</script>
</html>
===End=========
JavaScript redirects
====Begin=========
<script type="text/javascript">
<!--
window.location = "http://www.daniel-ionica.net/blog/index.php"
//-->
</script>
=====End========
JavaScript timed delay
====Begin=============
<html>
<head>
<script type="text/javascript">
<!--
function delayer(){
window.location = "http://www.daniel-ionica.net/blog/index.php"
}
//-->
</script>
</head>
<body onLoad="setTimeout('delayer()', 5000)">
<h2 >Prepare to be redirected!</h2>
<p>This page is a time delay redirect, please update your bookmarks to our new
location!</p></body>
</html>
=====End============
5000 are miliseconds. You can customize this scripts to suit your needs
Load img (logo) based on url
this is the script that can load an img or logo (i use it in loading a different logo based on the url for my vbulletin forum) based on the url of the page:
<img src="path_2_img_or_logo.jpg" id="thelogo"/>
<script type="text/javascript">
var imagine=document.getElementById('logoul');
if(window.location.href.indexOf("domain1.com") > -1) imagine.src="path_to_img_or_logo1";
if(window.location.href.indexOf("domain2.com") > -1) imagine.src="path_to_img_or_logo2";
</script>
