Toon posts:

Javascript en blogger tags

Pagina: 1
Acties:
  • 46 views sinds 30-01-2008

Verwijderd

Topicstarter
Sorry dat ik het in het engels had geschreven maar iedereen kent wel engels toch?



Here's the problem.

I want to have multiple categories in blogger to do so I created multiple blogs with different names e.g photos / personal etc.

When I post something on these blogs it automatically mails this post to my main blog but then an annoying [photos] - is put in front of the title.

So I thought why not replace this [photos] tag with an image to indicate to which kind of categorie this post belongs?

I wrote a small script that does cuts of the tags and replaces it with an image. This works fine when I test it locally but when I put it on the server it just wont work. Even a basic thing like just printing the title wont work.

This is the code

<script type="text/javascript">
<!--
var title= <$BlogItemTitle$>;
document.write(title);
//-->
</script>

when I check the output

its like

<script type="text/javascript">
<!--
var title= [photos] - test one two three;
document.write(title);
//-->
</script>

and it just won't print out the title. It must have overlooked something.

  • André
  • Registratie: Maart 2002
  • Laatst online: 23-04 12:47

André

Analytics dude

code:
1
2
3
4
<script type="text/javascript">
var title= "<$BlogItemTitle$>";
document.write(title);
</script>

En helaas, dit is een nederlands forum ;)

Dit topic is gesloten.