The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

how to add code inside <head></head> tag

View previous topic View next topic Go down

how to add code inside <head></head> tag

Post by Darkness_demoN on March 9th 2012, 3:58 pm

Hi i see so many scripts in dynamicdrive it write
Step 1: Add the below script to the <HEAD> section of your page:
So how to add scripts in this head. You have css field, Javascript codes management but i dont see that thing for the head tag.
Can you tell me how to add code in?

Darkness_demoN
Forumember

Male Posts : 160
Reputation : 10
Language : Bulgarian
Location : Bulgaria, Kavarna or Burgas

http://mangabg.darkbb.com

Back to top Go down

Re: how to add code inside <head></head> tag

Post by Darkness_demoN on March 10th 2012, 11:23 am

Rideem3 wrote:If it's JavaScript, create a new JavaScript. Wink
i think it isnt't.

can you give me example how to do this http://www.dynamicdrive.com/dynamicindex5/speechbubblestooltip.htm
and more important ho to do that
tep 1: Insert the following code into the <head> section of your page:

Darkness_demoN
Forumember

Male Posts : 160
Reputation : 10
Language : Bulgarian
Location : Bulgaria, Kavarna or Burgas

http://mangabg.darkbb.com

Back to top Go down

Re: how to add code inside <head></head> tag

Post by Darkness_demoN on March 12th 2012, 12:20 am

Bump ?

Darkness_demoN
Forumember

Male Posts : 160
Reputation : 10
Language : Bulgarian
Location : Bulgaria, Kavarna or Burgas

http://mangabg.darkbb.com

Back to top Go down

Re: how to add code inside <head></head> tag

Post by enlil on March 12th 2012, 12:30 am

Hi,


Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
Is already included.

For :

Code:
<link rel="stylesheet" type="text/css" href="speechbubbles.css" />
Directly put the .css in your css stylesheet.

For :

Code:
<script src="speechbubbles.js">

/***********************************************
* Speech Bubbles Tooltip- (c) Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

</script>

<script type="text/javascript">

jQuery(function($){ //on document.ready
    //Apply tooltip to links with class="addspeech", plus look inside 'speechdata.txt' for the tooltip markups
   $('a.addspeech').speechbubble({url:'speechdata.txt'})
})

</script>
Create a new javascript and put in it the content of speechbubbles.js followed by :

Code:
jQuery(function($){ //on document.ready
    //Apply tooltip to links with class="addspeech", plus look inside 'speechdata.txt' for the tooltip markups
   $('a.addspeech').speechbubble({url:'speechdata.txt'})
})
You will need to host speechdata.txt as an html page and change the 'speechdata.txt' url in the script.

Cordially.

enlil
New Member

Posts : 16
Reputation : 5
Language : c

Back to top Go down

Re: how to add code inside <head></head> tag

Post by Niko on March 13th 2012, 6:44 pm

@Darkness_demoN wrote:Hi i see so many scripts in dynamicdrive it write
Step 1: Add the below script to the <HEAD> section of your page:
So how to add scripts in this head. You have css field, Javascript codes management but i dont see that thing for the head tag.
Can you tell me how to add code in?

Hi!

if you need to add a code in <head> tags you need to have PunBB or PhpBB2 and edit the templates Mr. Green
Then you open the template called overall_header and find it Smile

Friendly,

Niko
Hyperactive

Male Posts : 2166
Reputation : 93
Language : English, French, Italian, Spanish, Latin

https://www.translationscloud.com/?utm_source=forumotion&utm

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum